Commit 95071460 authored by michael's avatar michael

workaround apps which dont provided correctly padded streams


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3695 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent eeeb7554
......@@ -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