avcodec/pngdec: Check compression method