avcodec/pngdec: Fix paeth prediction with small images