mirror of
https://github.com/mpv-player/mpv
synced 2025-03-10 08:13:03 +00:00
ad_lavc: actually tell decoder about the timebase
Essentially forgotten in commit 05e4df3f
.
This commit is contained in:
parent
6980575e15
commit
a47d849df7
@ -103,6 +103,7 @@ static int init(struct dec_audio *da, const char *decoder)
|
|||||||
lavc_context->refcounted_frames = 1;
|
lavc_context->refcounted_frames = 1;
|
||||||
lavc_context->codec_type = AVMEDIA_TYPE_AUDIO;
|
lavc_context->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
lavc_context->codec_id = lavc_codec->id;
|
lavc_context->codec_id = lavc_codec->id;
|
||||||
|
lavc_context->time_base = ctx->codec_timebase;
|
||||||
|
|
||||||
if (opts->downmix && mpopts->audio_output_channels.num_chmaps == 1) {
|
if (opts->downmix && mpopts->audio_output_channels.num_chmaps == 1) {
|
||||||
lavc_context->request_channel_layout =
|
lavc_context->request_channel_layout =
|
||||||
|
Loading…
Reference in New Issue
Block a user