Factorize: use the X_NE() macro in avcodec_get_pix_fmt().