X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwebvttdec.c;h=0aeb8a63f489bc081f13f8a71e4022346ca1bea2;hb=f8b09e90e92ca74c664d661c4f459bfa1d6383b5;hp=47a3255fd012192e686b77052ddd784e5bd3e577;hpb=ea1f47757b2d2dcfaa0052af34b9c1df293185af;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);