From: Loren Merritt Date: Wed, 2 May 2007 21:33:43 +0000 (+0000) Subject: require a ratecontrol method to be specified, it no longer defaults to cqp=26. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ffa4e76d4573303271c768f6ec03c21f0f2f4f02;p=x264.git require a ratecontrol method to be specified, it no longer defaults to cqp=26. git-svn-id: svn://svn.videolan.org/x264/trunk@655 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/common.c b/common/common.c index 00b1d9fd..64ba37a1 100644 --- a/common/common.c +++ b/common/common.c @@ -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; diff --git a/encoder/encoder.c b/encoder/encoder.c index a05f963b..4118ec76 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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 b00a009e..ae0e87dc 100644 --- a/x264.h +++ b/x264.h @@ -35,7 +35,7 @@ #include -#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