summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-10-04 22:13:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-05 00:07:39 +0200
commit0333d234b0355b375762447e93674e3fe3c5bff1 (patch)
tree90c5eb31d14c00b6f57f7901ded35d9642ee35a7
parent253d18b352d917a0f2c1fbaa902fec45b19392ee (diff)
h264: do not let invalid values in h->ref_count after a decoder reset.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5aac84d8b5..fb3099a5fd 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) {