diff options
author | jstebbins <jstebbins.hb@gmail.com> | 2011-10-31 14:59:32 +0000 |
---|---|---|
committer | jstebbins <jstebbins.hb@gmail.com> | 2011-10-31 14:59:32 +0000 |
commit | 2eae9be4713838c9eb4a111246f2e8d63a62fd7a (patch) | |
tree | 8d85fa4e770912ee755fc58ef48f3a0ebe680e24 /libhb/work.c | |
parent | ee03feea6ff45d159bd4060e5f7492ac727ec600 (diff) |
Allow vorbis quality to go down to -0.2
Bizzaro vorbis allows negative quality factors. They go to 11 in the
wrong direction.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4332 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c index ea05c098f..39dcc4d28 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -407,7 +407,7 @@ void hb_display_job_info( hb_job_t * job ) hb_log( " + encoder: %s", hb_audio_encoders[j].human_readable_name ); if( audio->config.out.bitrate > 0 ) hb_log( " + bitrate: %d kbps, samplerate: %d Hz", audio->config.out.bitrate, audio->config.out.samplerate ); - else if( audio->config.out.quality >= 0 ) + else if( audio->config.out.quality != -1 ) hb_log( " + quality: %.2f, samplerate: %d Hz", audio->config.out.quality, audio->config.out.samplerate ); else if( audio->config.out.samplerate > 0 ) hb_log( " + samplerate: %d Hz", audio->config.out.samplerate ); @@ -706,7 +706,7 @@ static void do_job( hb_job_t * job ) } /* sense-check the requested quality */ - if( audio->config.out.quality >= 0 ) + if( audio->config.out.quality != -1 ) { float best_quality = hb_get_best_audio_quality( audio->config.out.codec, audio->config.out.quality ); @@ -728,7 +728,7 @@ static void do_job( hb_job_t * job ) } /* sense-check the requested bitrate */ - if( audio->config.out.quality < 0 ) + if( audio->config.out.quality == -1 ) { if( audio->config.out.bitrate <= 0 ) { |