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

Laurent Aimar git at videolan.org
Fri Nov 4 20:49:17 CET 2011


ffmpeg | branch: release/0.7 | Laurent Aimar <fenrir at videolan.org> | Tue Oct  4 22:13:58 2011 +0200| [f74d1c6de7ef810544edae947db1eb1e2c7b6361] | committer: Michael Niedermayer

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

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f74d1c6de7ef810544edae947db1eb1e2c7b6361
---

 libavcodec/h264.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f6e93bd..96d8ecf 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2633,6 +2633,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) {



More information about the ffmpeg-cvslog mailing list