diff options
-rw-r--r-- | libhb/audio_resample.c | 5 | ||||
-rw-r--r-- | libhb/hb.c | 5 |
2 files changed, 5 insertions, 5 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 || diff --git a/libhb/hb.c b/libhb/hb.c index c51683c7c..cc9fd2279 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -266,11 +266,6 @@ uint64_t hb_ff_layout_xlat(uint64_t ff_channel_layout, int nchannels) ff_channel_layout, nchannels); } } - else if (hb_layout == AV_CH_LAYOUT_STEREO_DOWNMIX) - { - // Dolby is really only Stereo as far as downmixing is concerned - hb_layout = AV_CH_LAYOUT_STEREO; - } return hb_layout; } |