]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_subtitles: remove usage of AVCodecContext accessors
authorJames Almer <jamrial@gmail.com>
Mon, 13 Nov 2017 03:11:34 +0000 (00:11 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 15 Nov 2017 04:14:22 +0000 (01:14 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavfilter/vf_subtitles.c

index 66a564699a0b2ac23f8f5edea7b450c4f67623b4..a7b02461f2dd4bb1e40b061883fae0d566c566be 100644 (file)
@@ -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)