diff options
author | Rodeo <[email protected]> | 2012-08-15 14:22:15 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-08-15 14:22:15 +0000 |
commit | 939a4a3e6ffefa889ad3ebcf8db6ba93f74c8803 (patch) | |
tree | d2481c5b0e428fc533807e2b04c564229a926540 | |
parent | 5ec7dcc912c9ed681cff004c2593e727c516fa9a (diff) |
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
-rw-r--r-- | libhb/audio_remap.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |