]> git.sesse.net Git - ffmpeg/commitdiff
h264: do not let invalid values in h->ref_count after a decoder reset.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 4 Oct 2011 20:13:58 +0000 (22:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 4 Oct 2011 22:07:39 +0000 (00:07 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 5aac84d8b5e7ffc3ba49201c5c2c4a51b68c1eac..fb3099a5fda4b913bfd61fa623b084af96e5e899 100644 (file)
@@ -2634,6 +2634,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
         free_tables(h, 0);
         flush_dpb(s->avctx);
         MPV_common_end(s);
+        h->list_count = 0;
     }
     if (!s->context_initialized) {
         if (h != h0) {