On 2012-03-16 14:17:16 -0700, Ronald S. Bultje wrote: > From: "Ronald S. Bultje" <[email protected]> > > Prevents hangs on corrupt input. > > Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: [email protected] > --- > libavcodec/mpegvideo.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c > index 8be596b..a239a6a 100644 > --- a/libavcodec/mpegvideo.c > +++ b/libavcodec/mpegvideo.c > @@ -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); > } > } >
ok Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
