X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmgsts.c;h=0720de8d8687f1a0d797a612299df636b1d83661;hb=6372c9dc9972318e75a5889ad6c52500b8294099;hp=8cbc9521d65a14db64d89d2499b9d53d84765504;hpb=0479cf8530d0192c537b1ea77c882494a17bf593;p=ffmpeg diff --git a/libavformat/mgsts.c b/libavformat/mgsts.c index 8cbc9521d65..0720de8d868 100644 --- a/libavformat/mgsts.c +++ b/libavformat/mgsts.c @@ -55,13 +55,13 @@ static int read_header(AVFormatContext *s) st->nb_frames = st->duration = avio_rb32(pb); fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX); - st->codec->width = avio_rb32(pb); - st->codec->height = avio_rb32(pb); + st->codecpar->width = avio_rb32(pb); + st->codecpar->height = avio_rb32(pb); avio_skip(pb, 12); - 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); avpriv_set_pts_info(st, 64, fps.den, fps.num); avio_skip(pb, 20);