[FFmpeg-devel] [PATCH]lavf/img2dec: Return a small score for possibly invalid jpeg files

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Sep 15 18:27:26 CEST 2015

Michael Niedermayer <michaelni <at> gmx.at> writes:

> > I believe that the jpeg probe function should always return 
> > a small score for files starting with 0xffd8.

> do you have a sample file that benefits from this ?

No, the more specific test for ticket #4841 was applied, 
I just believe that "0" is not optimal for random files 
starting with "0xffd8".

But I wonder if the decoder is as strict as the checks 
that you originally wrote for the mjpeg parser.

Carl Eugen

More information about the ffmpeg-devel mailing list