Avoid overflows when reading pgm files with maxval != 255 and != 65535.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 28 Jul 2013 17:07:06 +0000 (19:07 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 28 Jul 2013 17:07:06 +0000 (19:07 +0200)
commit7651c0e49b1f6e66120ef32570a87e3f09224574
tree69ca29c14ae117bdd2a7e9841c3b009091eece4e
parent7e8e8ba9cc2b074b988e8ab28f69cfc5d454d674
Avoid overflows when reading pgm files with maxval != 255 and != 65535.

libjpeg v6b apparently does not initialize the most significant bits
to zero when writing 12bit pgm's with maxval 4095.
libavcodec/pnmdec.c