[Ffmpeg-cvslog] r6499 - trunk/libavcodec/vorbis_enc.c

ods15 subversion
Mon Oct 2 08:09:07 CEST 2006


Author: ods15
Date: Mon Oct  2 08:09:06 2006
New Revision: 6499

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
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

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 08:09:06 2006
@@ -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;
 




More information about the ffmpeg-cvslog mailing list