summaryrefslogtreecommitdiffstats
path: root/libhb/encvorbis.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-10-31 14:59:32 +0000
committerjstebbins <[email protected]>2011-10-31 14:59:32 +0000
commit2eae9be4713838c9eb4a111246f2e8d63a62fd7a (patch)
tree8d85fa4e770912ee755fc58ef48f3a0ebe680e24 /libhb/encvorbis.c
parentee03feea6ff45d159bd4060e5f7492ac727ec600 (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/encvorbis.c')
-rw-r--r--libhb/encvorbis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/encvorbis.c b/libhb/encvorbis.c
index 8ac2e1a58..5507fac47 100644
--- a/libhb/encvorbis.c
+++ b/libhb/encvorbis.c
@@ -82,17 +82,17 @@ int encvorbisInit( hb_work_object_t * w, hb_job_t * job )
{
hb_error( "encvorbis: vorbis_encode_setup_managed failed.\n" );
*job->die = 1;
- return 0;
+ return -1;
}
}
- else if( audio->config.out.quality >= 0 )
+ else if( audio->config.out.quality != -1 )
{
if( vorbis_encode_setup_vbr( &pv->vi, pv->out_discrete_channels,
audio->config.out.samplerate, audio->config.out.quality ) )
{
hb_error( "encvorbis: vorbis_encode_setup_vbr failed.\n" );
*job->die = 1;
- return 0;
+ return -1;
}
}
@@ -101,7 +101,7 @@ int encvorbisInit( hb_work_object_t * w, hb_job_t * job )
{
hb_error( "encvorbis: vorbis_encode_ctl( ratemanage2_set ) OR vorbis_encode_setup_init failed.\n" );
*job->die = 1;
- return 0;
+ return -1;
}
/* add a comment */