diff options
author | jstebbins <[email protected]> | 2010-10-23 19:26:51 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-10-23 19:26:51 +0000 |
commit | 230295694e96bb9402974c641954529bf11c4375 (patch) | |
tree | 22a1112cd51214a59aacec22bfe7b74d7ce50997 /libhb | |
parent | 71339bee34b6dbc248ee2027ead281369f02024c (diff) |
update baseline presets with weightp=0
eliminate hack that defaults weightp=0 when bframes=0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3623 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/encx264.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index 83d3edabb..bdc32e6e4 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -85,44 +85,6 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) x264_param_default( ¶m ); - /* Default weightp to off for baseline, - overridable through x264 option strings. */ - if( job->x264opts != NULL && *job->x264opts != '\0' ) - { - char *x264opts, *x264opts_start; - - x264opts = x264opts_start = strdup(job->x264opts); - - while( x264opts_start && *x264opts ) - { - char *name = x264opts; - char *value; - - x264opts += strcspn( x264opts, ":" ); - if( *x264opts ) - { - *x264opts = 0; - x264opts++; - } - - value = strchr( name, '=' ); - if( value ) - { - *value = 0; - value++; - } - - if( !( strcmp( name, "bframes" ) ) ) - { - if( atoi( value ) == 0 ) - { - param.analyse.i_weighted_pred = X264_WEIGHTP_NONE; - hb_log("encx264: no bframes, disabling weight-p unless told otherwise"); - } - } - } - } - /* Enable metrics */ param.analyse.b_psnr = 1; param.analyse.b_ssim = 1; |