summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-23 12:06:47 +0200
committerwm4 <wm4@nowhere>2016-08-23 12:06:47 +0200
commita47d849df71d3c681d949cc82f334deec492816b (patch)
treeb872fa45b053ebca129895c377b84404c3ca335a
parent6980575e15d7cc64d291546635ecf5b4cf81a74a (diff)
downloadmpv-a47d849df71d3c681d949cc82f334deec492816b.tar.bz2
mpv-a47d849df71d3c681d949cc82f334deec492816b.tar.xz
ad_lavc: actually tell decoder about the timebase
Essentially forgotten in commit 05e4df3f.
-rw-r--r--audio/decode/ad_lavc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 26e67fe1b9..78d0cec807 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -103,6 +103,7 @@ static int init(struct dec_audio *da, const char *decoder)
lavc_context->refcounted_frames = 1;
lavc_context->codec_type = AVMEDIA_TYPE_AUDIO;
lavc_context->codec_id = lavc_codec->id;
+ lavc_context->time_base = ctx->codec_timebase;
if (opts->downmix && mpopts->audio_output_channels.num_chmaps == 1) {
lavc_context->request_channel_layout =