lavf: move force_codec_ids() up