mirror of https://git.ffmpeg.org/ffmpeg.git
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@libav.org
(cherry picked from commit c6ccb96bc9
)
Conflicts:
libavcodec/mpegvideo.c
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
parent
989431c02f
commit
87208b8fc4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue