avcodec/iff: Factorize av_pix_fmt_desc_get() out