summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-16 09:53:31 +0100
committerwm4 <wm4@nowhere>2014-03-16 13:19:28 +0100
commit5506c8d0f6450133d33e940fcdeaecc25564092a (patch)
tree922a41dd04950805cc17d63426cdce9ba6026811 /audio
parent822e040ddb50dd9a1bd888465552e131a9a830ce (diff)
downloadmpv-5506c8d0f6450133d33e940fcdeaecc25564092a.tar.bz2
mpv-5506c8d0f6450133d33e940fcdeaecc25564092a.tar.xz
ad_lavc: remove deprecated downmixing by channel count
Downmixing by channel layout now hopefully works with all supported libavcodec versions.
Diffstat (limited to 'audio')
-rw-r--r--audio/decode/ad_lavc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index 0484fb9521..242b23b994 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -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