Commit 03dae121 authored by James Almer's avatar James Almer

avfilter/vf_subtitles: remove usage of AVCodecContext accessors

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 21add0c2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment