diff options
author | maurj <[email protected]> | 2007-04-02 13:05:07 +0000 |
---|---|---|
committer | maurj <[email protected]> | 2007-04-02 13:05:07 +0000 |
commit | 9052711da97518061059fecc3265aa2d93379b39 (patch) | |
tree | b30eed8359810edbc9595fc0ccd568cbf72ce950 /libhb/work.c | |
parent | 21290154609bd45c9c5944080f4a8000552e0470 (diff) |
Amended work.c to remember the number of source A52 channels and lfe channels, so that deca52.c can correctly detect a 5.1 source which needs mixing down to Dolby Digital. Previously it was just mixing 5.1 down to stereo. This has been broken since rev 438, when the multi-soundtrack bug was fixed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@472 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 3c1ceadd5..0a9392187 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -304,6 +304,11 @@ static void do_job( hb_job_t * job, int cpu_count ) audio->channelsused = 2; } + /* remember the number of source channels, so that deca52.c knows what source we had */ + audio->config.a52.channels = audio->channels; + audio->config.a52.lfechannels = audio->lfechannels; + + /* pass round the number of channels we actually used */ audio->config.aac.channelsused = audio->config.a52.channelsused = audio->config.vorbis.channelsused = audio->channelsused; audio->config.vorbis.language = audio->lang_simple; |