mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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
This commit is contained in:
parent
80387f0e25
commit
c6ccb96bc9
@ -1409,8 +1409,7 @@ void ff_MPV_frame_end(MpegEncContext *s)
|
||||
s->avctx->coded_frame = &s->current_picture_ptr->f;
|
||||
|
||||
if (s->codec_id != CODEC_ID_H264 && s->current_picture.f.reference) {
|
||||
ff_thread_report_progress(&s->current_picture_ptr->f,
|
||||
s->mb_height - 1, 0);
|
||||
ff_thread_report_progress(&s->current_picture_ptr->f, INT_MAX, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user