]> granicus.if.org Git - handbrake/commitdiff
Use -2 to 10 range for Vorbis audio quality (same as what oggenc uses), instead of...
authorRodeo <tdskywalker@gmail.com>
Fri, 23 Dec 2011 19:47:28 +0000 (19:47 +0000)
committerRodeo <tdskywalker@gmail.com>
Fri, 23 Dec 2011 19:47:28 +0000 (19:47 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4385 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/common.c
libhb/encvorbis.c

index 65be729b8e32c9a8e8328d08392ead5316a209cd..5f0d058ed4aca797081531f65609726f844079cf 100644 (file)
@@ -518,9 +518,9 @@ void hb_get_audio_quality_limits(uint32_t codec, float *low, float *high, float
 
         case HB_ACODEC_VORBIS:
             *direction = 0;
-            *granularity = 0.05;
-            *low = -0.2;
-            *high = 1.0;
+            *granularity = 0.5;
+            *low = -2.0;
+            *high = 10.0;
             break;
 
         case HB_ACODEC_CA_AAC:
index 5507fac47d8972f23489dda7ee3a5565947a699d..bbbc19785ed2fc753182f867084ff009fc7525be 100644 (file)
@@ -87,8 +87,9 @@ int encvorbisInit( hb_work_object_t * w, hb_job_t * job )
     }
     else if( audio->config.out.quality != -1 )
     {
+        // map VBR quality to Vorbis API (divide by 10)
         if( vorbis_encode_setup_vbr( &pv->vi, pv->out_discrete_channels,
-              audio->config.out.samplerate, audio->config.out.quality ) )
+              audio->config.out.samplerate, audio->config.out.quality/10 ) )
         {
             hb_error( "encvorbis: vorbis_encode_setup_vbr failed.\n" );
             *job->die = 1;