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
1 changed files with 3 additions and 0 deletions

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;