From 5ef3ec8029323e15ee87d6dc7b6c31258178f58b Mon Sep 17 00:00:00 2001 From: jbrjake Date: Sat, 16 Feb 2008 16:15:20 +0000 Subject: 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 --- libhb/work.c | 7 +++++++ 1 file changed, 7 insertions(+) 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" ); -- cgit v1.2.3