workaround apps which dont provided correctly padded streams

Originally committed as revision 3695 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 20 years ago
parent 9993064eec
commit 55429b5534
  1. 4
      libavcodec/mjpeg.c

@ -1832,9 +1832,9 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
*(dst++) = x;
if (x == 0xff)
{
while(*src == 0xff) src++;
while(src<buf_end && x == 0xff)
x = *(src++);
x = *(src++);
if (x >= 0xd0 && x <= 0xd7)
*(dst++) = x;
else if (x)

Loading…
Cancel
Save