changeset 3894:ee58cf698ebc libavcodec

Original Commit: r95 | ods15 | 2006-09-30 22:11:08 +0300 (Sat, 30 Sep 2006) | 3 lines scale user settable quality for more fine-grainablity now sane values for -aq is 10-30
author ods15
date Mon, 02 Oct 2006 06:09:06 +0000
parents 7c51248a63d3
children a9d7e965d24f
files vorbis_enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:09:04 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:09:06 2006 +0000
@@ -1059,7 +1059,7 @@
 
     create_vorbis_context(venc, avccontext);
 
-    if (avccontext->flags & CODEC_FLAG_QSCALE) venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;
+    if (avccontext->flags & CODEC_FLAG_QSCALE) venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 100.;
     else venc->quality = 0.17;
     //if(avccontext->cutoff > 0) cfreq = avccontext->cutoff / 1000.0;