summaryrefslogtreecommitdiffstats
path: root/audio/decode
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-06-21 18:24:30 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-06-22 16:12:14 +0200
commit3c5a79300c02e85085cb53d71746b3a47810edd8 (patch)
treed8553bd5531f98764878f3e5c7776247dd7fb7c8 /audio/decode
parentb64521ae10456d90eabbbcd445f36f29f2630c58 (diff)
downloadmpv-3c5a79300c02e85085cb53d71746b3a47810edd8.tar.bz2
mpv-3c5a79300c02e85085cb53d71746b3a47810edd8.tar.xz
various: remove av channel layout check
Diffstat (limited to 'audio/decode')
-rw-r--r--audio/decode/ad_lavc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 39cd74cd2a..8bab80901b 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -113,10 +113,6 @@ static bool init(struct mp_filter *da, struct mp_codec_params *codec,
if (opts->downmix && mpopts->audio_output_channels.num_chmaps == 1) {
const struct mp_chmap *requested_layout =
&mpopts->audio_output_channels.chmaps[0];
-#if !HAVE_AV_CHANNEL_LAYOUT
- lavc_context->request_channel_layout =
- mp_chmap_to_lavc(requested_layout);
-#else
AVChannelLayout av_layout = { 0 };
mp_chmap_to_av_layout(&av_layout, requested_layout);
@@ -126,7 +122,6 @@ static bool init(struct mp_filter *da, struct mp_codec_params *codec,
AV_OPT_SEARCH_CHILDREN);
av_channel_layout_uninit(&av_layout);
-#endif
}
// Always try to set - option only exists for AC3 at the moment