Commit b8a9dfb7 authored by Stefan Lucke's avatar Stefan Lucke Committed by Ramiro Polla

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
parent 29a7b8ef
...@@ -2239,7 +2239,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx, ...@@ -2239,7 +2239,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
*data_size = sizeof(AVFrame); *data_size = sizeof(AVFrame);
} }
return 0; return buf_size;
} }
if(s2->flags&CODEC_FLAG_TRUNCATED){ if(s2->flags&CODEC_FLAG_TRUNCATED){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment