mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 03:44:13 -04:00
14 lines
511 B
Plaintext
14 lines
511 B
Plaintext
$NetBSD: patch-ba,v 1.5 2016/01/24 14:34:11 ryoon Exp $
|
|
|
|
--- encoder/analyse.c.orig 2016-01-23 21:45:04.000000000 +0000
|
|
+++ encoder/analyse.c
|
|
@@ -322,7 +322,7 @@ int x264_analyse_init_costs( x264_t *h )
|
|
|
|
logs[0] = 0.718f;
|
|
for( int i = 1; i <= 2*4*2048; i++ )
|
|
- logs[i] = log2f( i+1 ) * 2.0f + 1.718f;
|
|
+ logs[i] = logf(i+1)*2.88539f + 1.718f;
|
|
|
|
for( int qp = X264_MIN( h->param.rc.i_qp_min, QP_MAX_SPEC ); qp <= h->param.rc.i_qp_max; qp++ )
|
|
if( init_costs( h, logs, qp ) )
|