mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
lavc_conv: pass pkt_timebase to ffmpeg
Similar to code used everywhere else we create a lavc context.
This commit is contained in:
parent
48f601ae9e
commit
4d33b622ce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user