summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorStefan Lucke <stefan@lucke.in-berlin.de>2007-10-13 01:34:00 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-10-13 01:34:00 +0000
commitb8a9dfb7f6706d56bc0e71bd5348e676ac96d14d (patch)
treec59ad1a35ec2aa3b5053a32d0d71f12097e8d309 /libavcodec
parent29a7b8ef2741a3c5bba8394608b090b0ec8b9365 (diff)
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
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){