mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
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:
parent
29a7b8ef27
commit
b8a9dfb7f6
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user