[FFmpeg-devel] [PATCH] JPEG interlaced error resilience

Reimar Döffinger Reimar.Doeffinger
Sun Aug 2 12:25:16 CEST 2009

On Sun, Aug 02, 2009 at 01:48:16AM -0700, Baptiste Coudurier wrote:
> On 08/02/2009 01:04 AM, Reimar D?ffinger wrote:
>> currently when FFmpeg encounters a broken interlaced JPEG where only the
>> second part is available, it decodes nothing at all.
>> This patch changes the behaviour to make it still decode the second half
>> (e.g. the odd lines).
>> Currently the only real source of such broken JPEGs is the MJPEG parser which
>> incorrectly splits all interlaced JPEGs into two packets.
> Technically there are 2 independant jpegs.

I think not quite, while there are two SOF there is only one EOI.
Also, it certainly can't be opened by GIMP or anything else, though I am not 100%
sure what the reason is there.

> I just fixed the AVSTREAM_PARSE_HEADERS issue.

Very good.

More information about the ffmpeg-devel mailing list