diff options
author | Aman Gupta <aman@tmm1.net> | 2017-02-17 17:23:05 -0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-18 12:53:11 +0100 |
commit | 4d33b622ce51e702f011b8e30d7b80b15e938439 (patch) | |
tree | 461abf0a63e66e5c2063a2394f204118fefd97f9 /sub | |
parent | 48f601ae9e3e86b3d13e294e3f3335a7ae24a743 (diff) |
lavc_conv: pass pkt_timebase to ffmpeg
Similar to code used everywhere else we create a lavc context.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/lavc_conv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |