diff options
author | maurj <[email protected]> | 2007-03-27 21:28:40 +0000 |
---|---|---|
committer | maurj <[email protected]> | 2007-03-27 21:28:40 +0000 |
commit | 557b5fb91bc4ea84418e4f56b7b8ae3b5fdda398 (patch) | |
tree | 83d4d165f7f35fbaab903a23214d6a5afa65eb68 /libhb/work.c | |
parent | 45dec221d2e25d7cb80ca3ae6631cde0d8891f0d (diff) |
Amended the code comments about 6-channel and 1-channel audio extraction to reflect that it's no longer just for AAC, following saintdev's addition of 6-ch and 1-ch for OGM.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@458 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libhb/work.c b/libhb/work.c index e8fafbdc4..97c332bec 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -274,28 +274,27 @@ static void do_job( hb_job_t * job, int cpu_count ) /* store this audio's channel counts in the audio struct */ /* we will only end up with a channelsused value other than 2 - if we are encoding to AAC. All other audio encodings will get + if we are encoding to AAC or OGM. All other audio encodings will get a stereo mix. */ if (audio->channels == 5 && audio->lfechannels == 1) { /* we have a 5.1 AC-3 source soundtrack */ if ((job->acodec == HB_ACODEC_FAAC || job->acodec == HB_ACODEC_VORBIS) && job->surround) { - /* we're going to be encoding to AAC, + /* we're going to be encoding to a 6ch-supporting format, and have turned on the "preserve 5.1" flag */ audio->channelsused = 6; } else { - /* mix 5.1 down to Dolby Digital (2-channel) for - non-AAC audio, or for AAC without 5.1 preservation */ + /* mix 5.1 down to Dolby Digital (2-channel) */ audio->channelsused = 2; } } else if (audio->channels == 1 && audio->lfechannels == 0) { /* we have a 1.0 mono AC-3 source soundtrack */ if (job->acodec == HB_ACODEC_FAAC || job->acodec == HB_ACODEC_VORBIS) { - /* we're going to be encoding to AAC, - so mix down to a mono AAC track */ + /* we're going to be encoding to a 1ch-supporting format, + so mix down to a mono track */ audio->channelsused = 1; } else { - /* mix up the mono track to stereo for non-AAC formats */ + /* mix up the mono track to stereo */ audio->channelsused = 2; } } else { |