]> git.videolan.org Git - x264.git/commitdiff
require a ratecontrol method to be specified, it no longer defaults to cqp=26.
authorLoren Merritt <pengvado@videolan.org>
Wed, 2 May 2007 21:33:43 +0000 (21:33 +0000)
committerLoren Merritt <pengvado@videolan.org>
Wed, 2 May 2007 21:33:43 +0000 (21:33 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@655 df754926-b1dd-0310-bc7b-ec298dee348c

common/common.c
encoder/encoder.c
x264.h

index 00b1d9fd14a368fa66313a1ebe55abbd0cc6bb7f..64ba37a1fc9dca4127bfe87a597d7930f5c1b6b4 100644 (file)
@@ -81,7 +81,7 @@ void    x264_param_default( x264_param_t *param )
     param->b_cabac = 1;
     param->i_cabac_init_idc = 0;
 
-    param->rc.i_rc_method = X264_RC_CQP;
+    param->rc.i_rc_method = X264_RC_NONE;
     param->rc.i_bitrate = 0;
     param->rc.f_rate_tolerance = 1.0;
     param->rc.i_vbv_max_bitrate = 0;
index a05f963b60707d5895168025fc9ddb4e368253b5..4118ec7666b05f2cedf76a8afa042040a21295e2 100644 (file)
@@ -384,7 +384,7 @@ static int x264_validate_parameters( x264_t *h )
 
     if( h->param.rc.i_rc_method < 0 || h->param.rc.i_rc_method > 2 )
     {
-        x264_log( h, X264_LOG_ERROR, "invalid RC method\n" );
+        x264_log( h, X264_LOG_ERROR, "no ratecontrol method specified\n" );
         return -1;
     }
     h->param.rc.f_rf_constant = x264_clip3f( h->param.rc.f_rf_constant, 0, 51 );
diff --git a/x264.h b/x264.h
index b00a009eac761f281556677c6f114d46ed450b5b..ae0e87dcad3037fe8cade8c3ae903f05ddfbc611 100644 (file)
--- a/x264.h
+++ b/x264.h
@@ -35,7 +35,7 @@
 
 #include <stdarg.h>
 
-#define X264_BUILD 54
+#define X264_BUILD 55
 
 /* x264_t:
  *      opaque handler for encoder */
@@ -74,7 +74,7 @@ typedef struct x264_t x264_t;
 #define X264_CQM_FLAT                0
 #define X264_CQM_JVT                 1
 #define X264_CQM_CUSTOM              2
-
+#define X264_RC_NONE                 -1
 #define X264_RC_CQP                  0
 #define X264_RC_CRF                  1
 #define X264_RC_ABR                  2