X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fjacosubdec.c;h=520c435cc5afc8f41f4b79cea8dbddf47ab44209;hb=8cd1323103d3a287eeba5cac32e00cd7314c02bd;hp=0436a9328d1d4b660a87438faf2c09c0d833e81d;hpb=2cfb34a4e8b464d790513ad42860869677ef79d9;p=ffmpeg diff --git a/libavformat/jacosubdec.c b/libavformat/jacosubdec.c index 0436a9328d1..520c435cc5a 100644 --- a/libavformat/jacosubdec.c +++ b/libavformat/jacosubdec.c @@ -167,8 +167,8 @@ static int jacosub_read_header(AVFormatContext *s) if (!st) return AVERROR(ENOMEM); avpriv_set_pts_info(st, 64, 1, 100); - st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE; - st->codec->codec_id = AV_CODEC_ID_JACOSUB; + st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE; + st->codecpar->codec_id = AV_CODEC_ID_JACOSUB; jacosub->timeres = 30; @@ -230,7 +230,7 @@ static int jacosub_read_header(AVFormatContext *s) } /* general/essential directives in the extradata */ - ret = avpriv_bprint_to_extradata(st->codec, &header); + ret = ff_bprint_to_codecpar_extradata(st->codecpar, &header); if (ret < 0) goto fail;