avcodec/pngdec: fix signed overflow
fixes fate ftrapv failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>