summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-02-21 23:56:12 +0000
committerRodeo <[email protected]>2012-02-21 23:56:12 +0000
commit8bd4efe5c7891fc428d56690dfd11aece7734d0e (patch)
tree396f9e2b342ff01b629d3623cf0da7b5f9658b43 /libhb/work.c
parent2599def15a4b622c9f0e6d354dd9c0ad90531d6c (diff)
Add HB_INVALID_AUDIO_QUALITY define. -1 is valid for Vorbis VBR and thus doesn't work for this purpose.
Fixes Vorbis VBR with --aq < 0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4461 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 80f0363c1..530defde9 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -437,7 +437,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 != -1 )
+ else if( audio->config.out.quality != HB_INVALID_AUDIO_QUALITY )
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 );
@@ -736,13 +736,13 @@ static void do_job( hb_job_t * job )
}
/* sense-check the requested quality */
- if( audio->config.out.quality != -1 )
+ if( audio->config.out.quality != HB_INVALID_AUDIO_QUALITY )
{
float best_quality = hb_get_best_audio_quality(
audio->config.out.codec, audio->config.out.quality );
if( best_quality != audio->config.out.quality )
{
- if( best_quality == -1.0 )
+ if( best_quality == HB_INVALID_AUDIO_QUALITY )
{
hb_log( "work: quality mode not supported by codec" );
}
@@ -758,7 +758,7 @@ static void do_job( hb_job_t * job )
}
/* sense-check the requested bitrate */
- if( audio->config.out.quality == -1 )
+ if( audio->config.out.quality == HB_INVALID_AUDIO_QUALITY )
{
if( audio->config.out.bitrate <= 0 )
{