X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_subtitles.c;h=a7b02461f2dd4bb1e40b061883fae0d566c566be;hb=8b1b25a86f1b3c61f1c9742c9b7fff5baa5f1bc7;hp=66a564699a0b2ac23f8f5edea7b450c4f67623b4;hpb=e2989c74dcf12dc398bf0c82b6c4eab5218fe621;p=ffmpeg diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 66a564699a0..a7b02461f2d 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -413,7 +413,7 @@ static av_cold int init_subtitles(AVFilterContext *ctx) * * That API is old and needs to be reworked to match behaviour with A/V. */ - av_codec_set_pkt_timebase(dec_ctx, st->time_base); + dec_ctx->pkt_timebase = st->time_base; ret = avcodec_open2(dec_ctx, NULL, &codec_opts); if (ret < 0)