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

Michael Niedermayer michaelni at gmx.at
Mon Jul 29 00:07:48 CEST 2013


On Sun, Jul 28, 2013 at 06:09:55PM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> libjpeg v6b can write 12bit pgm files that show white noise with ImageMagick 
> and gimp, FFmpeg shows recognizable but very broken images.
> The reason is that the bits above maxval (4095) are not initialized.
> Attached patch is only tested for the specific 12bit gray16 case.
> 
> Please review, Carl Eugen

please upload the pmn file this patch is about

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130729/4258f89d/attachment.asc>


More information about the ffmpeg-devel mailing list