summaryrefslogtreecommitdiffstats
path: root/libhb/audio_resample.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-08-11 18:30:28 +0000
committerRodeo <[email protected]>2012-08-11 18:30:28 +0000
commit833f974cc3b7b4a50f9c4a76686950a9dd395e70 (patch)
tree907c967a203eb080eeb74ec57d5a6e4e4c6e81f2 /libhb/audio_resample.c
parent3b80634a75354adf9e6c7ce1deb8dca8a5cad489 (diff)
Improve last commit. While the AC3 decoder doesn't use hb_ff_layout_xlat(), the code I added to it really belongs in hb_audio_resample.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4899 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/audio_resample.c')
-rw-r--r--libhb/audio_resample.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/audio_resample.c b/libhb/audio_resample.c
index 45d2fdf42..94ab3b531 100644
--- a/libhb/audio_resample.c
+++ b/libhb/audio_resample.c
@@ -53,6 +53,11 @@ int hb_audio_resample_update(hb_audio_resample_t *resample,
int ret, resample_changed;
new_channel_layout = hb_ff_layout_xlat(new_channel_layout, new_channels);
+ if (new_channel_layout == AV_CH_LAYOUT_STEREO_DOWNMIX)
+ {
+ // Dolby Surround is Stereo when it comes to remixing
+ new_channel_layout = AV_CH_LAYOUT_STEREO;
+ }
resample->resample_needed =
(resample->resample_needed ||