diff options
author | saintdev <[email protected]> | 2007-03-27 09:28:40 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2007-03-27 09:28:40 +0000 |
commit | a7c616dbf0aa3a4d55f0f2ea0de6f0170b547e0a (patch) | |
tree | 3b13dd7e5a40a81ceb316e0dfd86a68d3b97b034 /libhb/encfaac.c | |
parent | e9a5be8343b44b27da04450f2c8ece93279097b1 (diff) |
-6 channel surround for Vorbis/OGM. The channel mapping seems right for VLC, but may be messed up for other players.
-Other small fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@456 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encfaac.c')
-rw-r--r-- | libhb/encfaac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/encfaac.c b/libhb/encfaac.c index 84e1fcbaf..5eee39508 100644 --- a/libhb/encfaac.c +++ b/libhb/encfaac.c @@ -56,7 +56,7 @@ int encfaacInit( hb_work_object_t * w, hb_job_t * job ) /* pass the number of channels used into the private work data */ pv->channelsused = w->config->aac.channelsused; - pv->faac = faacEncOpen( job->arate, w->config->aac.channelsused, &pv->input_samples, + pv->faac = faacEncOpen( job->arate, pv->channelsused, &pv->input_samples, &pv->output_bytes ); pv->buf = malloc( pv->input_samples * sizeof( float ) ); @@ -65,7 +65,7 @@ int encfaacInit( hb_work_object_t * w, hb_job_t * job ) cfg->aacObjectType = LOW; cfg->allowMidside = 1; - if (w->config->aac.channelsused == 6) { + if (pv->channelsused == 6) { /* we are preserving 5.1 audio into 6-channel AAC, so indicate that we have an lfe channel */ cfg->useLfe = 1; @@ -74,12 +74,12 @@ int encfaacInit( hb_work_object_t * w, hb_job_t * job ) } cfg->useTns = 0; - cfg->bitRate = job->abitrate * 1000 / w->config->aac.channelsused; /* Per channel */ + cfg->bitRate = job->abitrate * 1000 / pv->channelsused; /* Per channel */ cfg->bandWidth = 0; cfg->outputFormat = 0; cfg->inputFormat = FAAC_INPUT_FLOAT; - if (w->config->aac.channelsused == 6) { + if (pv->channelsused == 6) { /* we are preserving 5.1 audio into 6-channel AAC, and need to re-map the output of deca52 into our own mapping - the mapping below is the default mapping expected by QuickTime */ |