X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftedcaptionsdec.c;h=774d4993b5f1e7c11891ebf69cfb699d48562425;hb=f8b09e90e92ca74c664d661c4f459bfa1d6383b5;hp=b6dc517073770090aaadbbed31628b57c101ba75;hpb=b9aa4ccff51598553cfc81b619b8c2bef26c1413;p=ffmpeg diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c index b6dc5170737..774d4993b5f 100644 --- a/libavformat/tedcaptionsdec.c +++ b/libavformat/tedcaptionsdec.c @@ -295,8 +295,8 @@ static av_cold int tedcaptions_read_header(AVFormatContext *avf) st = avformat_new_stream(avf, NULL); if (!st) return AVERROR(ENOMEM); - st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE; - st->codec->codec_id = AV_CODEC_ID_TEXT; + st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; + st->codecpar->codec_id = AV_CODEC_ID_TEXT; avpriv_set_pts_info(st, 64, 1, 1000); st->probe_packets = 0; st->start_time = 0;