Commit 55429b55 authored by Michael Niedermayer's avatar Michael Niedermayer

workaround apps which dont provided correctly padded streams

Originally committed as revision 3695 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9993064e
......@@ -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)
......
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