[FFmpeg-devel] Fix mjpeg decoder runaway from internal buffer

Anatoliy Nenashev anatoly.nenashev
Tue Oct 19 15:51:55 CEST 2010


Hi!
In some cases there is a situation when mjpeg decoder runaway from 
allocated s->buffer.
Usually it happens in VLC decoder for DC-AC coefficients when input 
frame is cirrupted.
In this case it is caused by "specific" garbage at the end of the memory 
allocated for s->buffer.

Here is a fix to prevent this situation.

Anatoly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mjpegdec.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101019/53d00e4a/attachment.bin>



More information about the ffmpeg-devel mailing list