Fix pix_fmt detection in the native jpeg2000 decoder.