From 15e340ccdb725fe0523bab0a56ba3ee9dcd89694 Mon Sep 17 00:00:00 2001 From: jbrjake Date: Sun, 9 Aug 2009 17:37:30 +0000 Subject: [PATCH] Blah, need to pay more attention when transcripting patches. job->areBframes needs to be on when no x264 opts are specified. Thanks again, Rodeo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2758 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encx264.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libhb/encx264.c b/libhb/encx264.c index e0f9f3401..249d42c5a 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -136,6 +136,9 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) param.i_level_idc ); } + /* B-frames are on by default.*/ + job->areBframes = 1; + /* This section passes the string x264opts to libx264 for parsing into parameter names and values. @@ -184,7 +187,6 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) barfs. So, check if the x264opts aren't using B-frames, and when they aren't, set the boolean job->areBframes as false. */ - job->areBframes = 1; if( !( strcmp( name, "bframes" ) ) ) { if( atoi( value ) == 0 ) -- 2.40.0