[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec x264.c,1.10,1.11

Michael Niedermayer michaelni
Wed Nov 9 12:07:59 CET 2005


Hi

On Wed, Nov 09, 2005 at 09:50:58AM +0100, M?ns Rullg?rd CVS wrote:
> Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
> In directory mail:/var2/tmp/cvs-serv23251/libavcodec
> 
> Modified Files:
> 	x264.c 
> Log Message:
> s/log2/av_log2/
> patch by Steven M. Schultz <sms at 2bsd com>
[...]
> -            12 + 6 * log2((double) avctx->global_quality / FF_QP2LAMBDA);
> +            12 + 6 * av_log2((double) avctx->global_quality / FF_QP2LAMBDA);

umm, wtf? this is not correct av_log2() is int->int log2 is double->double
use log2(x) = log(x)/log(2) if log2 is a problem

[...]
-- 
Michael





More information about the ffmpeg-cvslog mailing list