Commit 7d587359 authored by Michael Niedermayer's avatar Michael Niedermayer

small mjpeg fix by (James Stembridge <jstembridge at users dot sourceforge dot net>)

Originally committed as revision 2512 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 278de475
......@@ -1874,6 +1874,9 @@ not_the_end:
}
}
the_end:
if(buf_ptr > buf_end)
buf_ptr = buf_end;
dprintf("mjpeg decode frame unused %d bytes\n", buf_end - buf_ptr);
// return buf_end - buf_ptr;
return buf_ptr - buf;
......
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