Browse code

h264: do not let invalid values in h->ref_count after a decoder reset.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0333d234b0355b375762447e93674e3fe3c5bff1)
(cherry picked from commit f74d1c6de7ef810544edae947db1eb1e2c7b6361)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Laurent Aimar authored on 2011/10/05 05:13:58
Showing 1 changed files
... ...
@@ -3743,6 +3743,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
3743 3743
         free_tables(h);
3744 3744
         flush_dpb(s->avctx);
3745 3745
         MPV_common_end(s);
3746
+        h->list_count = 0;
3746 3747
     }
3747 3748
     if (!s->context_initialized) {
3748 3749
         if(h != h0)