[FFmpeg-cvslog] avcodec/h264: reset list_count too in case of error in ff_set_ref_count()
Michael Niedermayer
git at videolan.org
Mon Jan 6 16:23:59 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 6 16:15:40 2014 +0100| [98dcbb47fa5f51b8ebdf312bcee18b4b9900e7b2] | committer: Michael Niedermayer
avcodec/h264: reset list_count too in case of error in ff_set_ref_count()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=98dcbb47fa5f51b8ebdf312bcee18b4b9900e7b2
---
libavcodec/h264.c | 1 +
1 file changed, 1 insertion(+)
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;
}
More information about the ffmpeg-cvslog
mailing list