Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.