Prevent infinite loop when buffer holds SEQ_END_CODE only. Fix for r9870

Patch by Stefan Lucke <stefan <at> 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
This commit is contained in:
Stefan Lucke 2007-10-13 01:34:00 +00:00 committed by Ramiro Polla
parent 29a7b8ef27
commit b8a9dfb7f6

View File

@ -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){