avcodec/pngdec: check av_image_get_linesize return value