diff options
author | jbrjake <[email protected]> | 2008-02-16 16:15:20 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-02-16 16:15:20 +0000 |
commit | 5ef3ec8029323e15ee87d6dc7b6c31258178f58b (patch) | |
tree | ff49b4de003b728cce16b98f653f908fdbae1f6a | |
parent | 6c8029dbf9c1b76d5e59cb6408332596b19895dc (diff) |
Adds another safeguard to ensure AC3 pass-thru uses a 48khz sample rate.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1270 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 10f7a04d6..3d111d11e 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -333,6 +333,13 @@ static void do_job( hb_job_t * job, int cpu_count ) } } + if( job->audio_mixdowns[0] == HB_AMIXDOWN_AC3 || job->audio_mixdowns[1] == HB_AMIXDOWN_AC3 ) + { + /* Hard set correct sample rate for AC3 when libhb + mistakenly thinks the audio codec is AAC */ + job->arate = 48000; + } + if( job->acodec & HB_ACODEC_AC3 ) { hb_log( " + audio AC3 passthrough" ); |