diff options
author | jstebbins <[email protected]> | 2010-07-03 18:24:11 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-07-03 18:24:11 +0000 |
commit | daec13f6144419aa5efdada8598500f2d48cefac (patch) | |
tree | b5da2527d2cbba30d35b94634efac3ba05cdd476 /libhb/work.c | |
parent | 4813f1cf12793faed41951e0e4a195332f97ddcd (diff) |
fix some preset issues
add b-pyramid=none to appletv presets and remove b-pyramid hack from encx264.c
change samplerate from 48 to 'Auto' in all presets
cap samplerate to 48khz since none of the encoders support higher rates
remove obsolete UsesMaxPictureSettings from all presets. replace with UsesPictureSettings=2
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3424 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index e9b15d6de..d8fc4d98d 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -525,6 +525,14 @@ static void do_job( hb_job_t * job, int cpu_count ) free( audio ); continue; } + if( audio->config.out.codec != HB_ACODEC_AC3 && + audio->config.out.codec != HB_ACODEC_DCA && + audio->config.out.samplerate > 48000 ) + { + hb_log( "Sample rate %d not supported. Down-sampling to 48kHz.", + audio->config.out.samplerate ); + audio->config.out.samplerate = 48000; + } if ( audio->config.in.codec == HB_ACODEC_FFMPEG ) { if ( aud_id_uses[audio->id] ) |