avcodec/pngdec: Check trns more completely