[FFmpeg-devel] [PATCH]Avoid overflows when reading pgm with maxval != 255 and 65535

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jul 29 00:28:04 CEST 2013


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

> > The actual reason is that libjpeg v6b writes little 
> > endian 16bit pgm files, the specification requires 
> > big endian values.
> 
> i have realized this as well once i saw the commit 
> fixing it in libjpeg

I had fixed it in the release version myself before 
I realised to test cvs...

> this btw is easy to detect if we want to do it ...

But isn't the work-around different on le and be?
Note that it was always quite difficult to use 
libjpeg to produce such files (neither distribution 
nor standard compilation ever allowed it).

Carl Eugen



More information about the ffmpeg-devel mailing list