Browse Source

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
tags/v0.5
Stefan Lucke Ramiro Polla 17 years ago
parent
commit
b8a9dfb7f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpeg12.c

+ 1
- 1
libavcodec/mpeg12.c 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){


Loading…
Cancel
Save