summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/common.c6
-rw-r--r--libhb/encvorbis.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 65be729b8..5f0d058ed 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -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:
diff --git a/libhb/encvorbis.c b/libhb/encvorbis.c
index 5507fac47..bbbc19785 100644
--- a/libhb/encvorbis.c
+++ b/libhb/encvorbis.c
@@ -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;