[FFmpeg-devel] [PATCH] Fix crash in MJEG decoder

Diego Santa Cruz Diego.SantaCruz
Mon Jun 30 08:52:04 CEST 2008


> -----Original Message-----
> From: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-
> bounces at mplayerhq.hu] On Behalf Of matthieu castet
> Sent: Friday, June 27, 2008 7:27 PM
> To: FFmpeg development discussions and patches
> Subject: Re: [FFmpeg-devel] [PATCH] Fix crash in MJEG decoder
> 
> Diego Santa Cruz wrote:
> > Hi there,
> >
> > I have a JPEG file which segfaults the MJPEG decoder.
> >
> >
> > The decoded image will not be correct anyhow, but it can be
> > considered a best attempt to decode an unhandled color space and
> > prevents ffmpeg from crashing.
> >
> May be not decoding unsupported image will be a better solution ?

Not sure about this, having some information maight be better that not
at all, but this is debatable. The intent of the patch is not to crash
the decoder, even if some color components in the bitstream are ignored
by the decoder.




More information about the ffmpeg-devel mailing list