From 939a4a3e6ffefa889ad3ebcf8db6ba93f74c8803 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Wed, 15 Aug 2012 14:22:15 +0000 Subject: Let's hope this is the last of my stupid deca52 hb_audio_resample support mistakes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4903 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/audio_remap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libhb/audio_remap.c') diff --git a/libhb/audio_remap.c b/libhb/audio_remap.c index 97acaa025..10e1336d7 100644 --- a/libhb/audio_remap.c +++ b/libhb/audio_remap.c @@ -150,6 +150,11 @@ int* hb_audio_remap_build_table(uint64_t channel_layout, int ii, jj, nchannels, out_chan_idx, remap_idx, *remap_table; uint64_t *channels_in, *channels_out; + if (channel_layout == AV_CH_LAYOUT_STEREO_DOWNMIX) + { + // Dolby Surround is Stereo when it comes to remapping + channel_layout = AV_CH_LAYOUT_STEREO; + } nchannels = av_get_channel_layout_nb_channels(channel_layout); remap_table = malloc(nchannels * sizeof(int)); if (remap_table == NULL) -- cgit v1.2.3