Revert "pnm: remove nonsense code"
authorPaul B Mahol <onemda@gmail.com>
Sun, 28 Jul 2013 22:00:42 +0000 (00:00 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 28 Jul 2013 22:00:42 +0000 (00:00 +0200)
commitef81f55ec7a95907ec0eb1cb8cbcc3c8fa68e2e6
tree2b7a574347a2f1c78d15cfdf5db96af250ea01ee
parenta1ac3c2d9cff3027d4d58300c5800084e1735619
Revert "pnm: remove nonsense code"

Breaks decoding pgms with 255 < maxval < 65535.

Found-by: Carl Eugen Hoyos <cehoyos@ag.or.at>.
This reverts commit a0348d0966a81a66f3a1bf061576b24d5296b933.
(cherry picked from commit 768e40b451a459fefaceed6b1b3d6e70c93596ac)
libavcodec/pnm.c