X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwebvttdec.c;h=0aeb8a63f489bc081f13f8a71e4022346ca1bea2;hb=6372c9dc9972318e75a5889ad6c52500b8294099;hp=47a3255fd012192e686b77052ddd784e5bd3e577;hpb=2ef37691a0597529280dcb5be90325687eadac26;p=ffmpeg diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index 47a3255fd01..0aeb8a63f48 100644 --- a/libavformat/webvttdec.c +++ b/libavformat/webvttdec.c @@ -67,8 +67,8 @@ static int webvtt_read_header(AVFormatContext *s) if (!st) return AVERROR(ENOMEM); avpriv_set_pts_info(st, 64, 1, 1000); - st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE; - st->codec->codec_id = AV_CODEC_ID_WEBVTT; + st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; + st->codecpar->codec_id = AV_CODEC_ID_WEBVTT; st->disposition |= webvtt->kind; av_bprint_init(&header, 0, AV_BPRINT_SIZE_UNLIMITED);