From 4d33b622ce51e702f011b8e30d7b80b15e938439 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Fri, 17 Feb 2017 17:23:05 -0800 Subject: lavc_conv: pass pkt_timebase to ffmpeg Similar to code used everywhere else we create a lavc context. --- sub/lavc_conv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sub/lavc_conv.c b/sub/lavc_conv.c index 3ff350c590..0f3b18e0fa 100644 --- a/sub/lavc_conv.c +++ b/sub/lavc_conv.c @@ -91,6 +91,9 @@ struct lavc_conv *lavc_conv_create(struct mp_log *log, const char *codec_name, av_dict_free(&opts); // Documented as "set by libavcodec", but there is no other way avctx->time_base = (AVRational) {1, 1000}; +#if LIBAVCODEC_VERSION_MICRO >= 100 + avctx->pkt_timebase = avctx->time_base; +#endif priv->avctx = avctx; priv->extradata = talloc_strndup(priv, avctx->subtitle_header, avctx->subtitle_header_size); -- cgit v1.2.3