avcodec/pngdec: Calculate MPNG bytewidth more defensively