1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-20 08:15:06 +02:00

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
This commit is contained in:
Michael Niedermayer 2003-11-12 22:01:13 +00:00
parent 278de4755d
commit 7d58735942

View File

@ -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;