[x264-devel] [PATCH] MB rate control

Loren Merritt lorenm at u.washington.edu
Sun Aug 8 22:49:21 CEST 2004


The new cbr mode fails to completely disable itself when encoding in
constant QP mode. The per-block QPs are then randomized between QP+4 and
QP-2 based on uninitialized ratecontrol parameters.

--Loren Merritt
-------------- next part --------------
Index: encoder/ratecontrol.c
===================================================================
--- encoder/ratecontrol.c	(revision 21)
+++ encoder/ratecontrol.c	(working copy)
@@ -243,6 +243,9 @@
     int dqp;
     int i;
 
+    if(!h->param.b_cbr)
+        return;
+
     x264_cpu_restore( h->param.cpu );
 
     rc->qps += rc->qpm;


More information about the x264-devel mailing list