- st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
- st->codec->codec_tag = avio_rb32(pb);
- st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags,
- st->codec->codec_tag);
+ st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
+ st->codecpar->codec_tag = avio_rb32(pb);
+ st->codecpar->codec_id = ff_codec_get_id(ff_codec_bmp_tags,
+ st->codecpar->codec_tag);