diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-06 16:15:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-06 16:17:45 +0100 |
commit | 98dcbb47fa5f51b8ebdf312bcee18b4b9900e7b2 (patch) | |
tree | e0ed118526d311f38e275c1228ac0006ff2ff38c /libavcodec | |
parent | 7ee8a1c562e8de3bf9627ff10bfb744392c018b7 (diff) | |
download | ffmpeg-streaming-98dcbb47fa5f51b8ebdf312bcee18b4b9900e7b2.zip ffmpeg-streaming-98dcbb47fa5f51b8ebdf312bcee18b4b9900e7b2.tar.gz |
avcodec/h264: reset list_count too in case of error in ff_set_ref_count()
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 4a16386..d613afa 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3409,6 +3409,7 @@ int ff_set_ref_count(H264Context *h) if (ref_count[0]-1 > max[0] || ref_count[1]-1 > max[1]){ av_log(h->avctx, AV_LOG_ERROR, "reference overflow %u > %u or %u > %u\n", ref_count[0]-1, max[0], ref_count[1]-1, max[1]); h->ref_count[0] = h->ref_count[1] = 0; + h->list_count = 0; return AVERROR_INVALIDDATA; } |