From: Stefan Lucke Date: Sat, 13 Oct 2007 01:34:00 +0000 (+0000) Subject: Prevent infinite loop when buffer holds SEQ_END_CODE only. Fix for r9870 X-Git-Tag: android-x86-4.4-r1~34894 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b8a9dfb7f6706d56bc0e71bd5348e676ac96d14d;p=android-x86%2Fexternal-ffmpeg.git Prevent infinite loop when buffer holds SEQ_END_CODE only. Fix for r9870 Patch by Stefan Lucke lucke.in-berlin.de> Subject: API breakage by r9870 Date: 2007-10-05 11:06:47 GMT http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/57467 Originally committed as revision 10720 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 89793a5794..ed7409157a 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2239,7 +2239,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx, *data_size = sizeof(AVFrame); } - return 0; + return buf_size; } if(s2->flags&CODEC_FLAG_TRUNCATED){