diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-10-04 22:13:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-06 19:49:12 +0100 |
commit | 2eb5f77bc8ac0b533e3d305bf6dbe54186471465 (patch) | |
tree | eec421235f312703270fd03a82692cddcb7dadcd /libavcodec | |
parent | ddbbe500b04a6c2a6551461843e6c94e5576fcbf (diff) | |
download | ffmpeg-2eb5f77bc8ac0b533e3d305bf6dbe54186471465.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 205f8018ec..aaa8ad7d7d 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3743,6 +3743,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ free_tables(h); flush_dpb(s->avctx); MPV_common_end(s); + h->list_count = 0; } if (!s->context_initialized) { if(h != h0) |