Revert "pnm: remove nonsense code"
authorPaul B Mahol <onemda@gmail.com>
Sun, 28 Jul 2013 21:42:47 +0000 (21:42 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 28 Jul 2013 21:45:37 +0000 (21:45 +0000)
commit768e40b451a459fefaceed6b1b3d6e70c93596ac
tree9f9c740798a1e055ff0e7b95b2237b017127548e
parentac8e70d7358ed6d319b5eac21cbeea223ed9d1c9
Revert "pnm: remove nonsense code"

Breaks decoding pgms with 256 < maxval < 65535.

Found-by: Carl Eugen Hoyos <cehoyos@ag.or.at>.
This reverts commit a0348d0966a81a66f3a1bf061576b24d5296b933.
libavcodec/pnm.c