[FFmpeg-cvslog] mpeg4: report frame decoding completion at ff_MPV_frame_end().
Ronald S. Bultje
git at videolan.org
Thu May 3 00:26:16 CEST 2012
ffmpeg | branch: release/0.10 | Ronald S. Bultje <rsbultje at gmail.com> | Fri Mar 16 14:16:56 2012 -0700| [87208b8fc4bdd5c2ee635682b4a06fc251dae74d] | committer: Reinhard Tartler
mpeg4: report frame decoding completion at ff_MPV_frame_end().
Prevents hangs on corrupt input.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit c6ccb96bc955b2087ec71033d99b3dcd5203eaf2)
Conflicts:
libavcodec/mpegvideo.c
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87208b8fc4bdd5c2ee635682b4a06fc251dae74d
---
libavcodec/mpegvideo.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 50e6ad6..7aaf398 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1415,8 +1415,7 @@ void MPV_frame_end(MpegEncContext *s)
s->avctx->coded_frame = (AVFrame *) s->current_picture_ptr;
if (s->codec_id != CODEC_ID_H264 && s->current_picture.f.reference) {
- ff_thread_report_progress((AVFrame *) s->current_picture_ptr,
- s->mb_height - 1, 0);
+ ff_thread_report_progress((AVFrame *) s->current_picture_ptr, INT_MAX, 0);
}
}
More information about the ffmpeg-cvslog
mailing list