[FFmpeg-devel] [PATCH 3/3] h264: do not let invalid values in h->ref_count after a decoder reset.
fenrir at elivagar.org
fenrir at elivagar.org
Tue Oct 4 22:13:58 CEST 2011
From: Laurent Aimar <fenrir at videolan.org>
---
libavcodec/h264.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8670af8..54a595c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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) {
--
1.7.2.5
More information about the ffmpeg-devel
mailing list