mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
ad_lavc: remove deprecated downmixing by channel count
Downmixing by channel layout now hopefully works with all supported libavcodec versions.
This commit is contained in:
parent
822e040ddb
commit
5506c8d0f6
@ -212,10 +212,6 @@ static int init(struct dec_audio *da, const char *decoder)
|
||||
if (opts->downmix) {
|
||||
lavc_context->request_channel_layout =
|
||||
mp_chmap_to_lavc(&mpopts->audio_output_channels);
|
||||
// Compatibility for Libav 9
|
||||
av_opt_set_int(lavc_context, "request_channels",
|
||||
mpopts->audio_output_channels.num,
|
||||
AV_OPT_SEARCH_CHILDREN);
|
||||
}
|
||||
|
||||
// Always try to set - option only exists for AC3 at the moment
|
||||
|
Loading…
Reference in New Issue
Block a user