avcodec/pngdec: Fix alpha detection with skip_frame