summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-10-31 18:29:33 +0000
committerjstebbins <[email protected]>2009-10-31 18:29:33 +0000
commit04b3e0b0f496769d8fac76cbbe3169528140a4c9 (patch)
treee2cbb09533283d2d3466294449a5a38adad37c98
parentc670e56a5ae06d7537e08b599a189f5771af1155 (diff)
temporary fix for x264 b-pyramid parameter change
if value is "1", set to "normal", "0" set to "none" pass other values through. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2907 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/encx264.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index efccf7c05..56bdd5ff4 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -255,6 +255,14 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
{
job->areBframes = 2;
}
+ if( value == NULL || !strcmp( value, "1" ) )
+ {
+ value = "normal";
+ }
+ else if( !strcmp( value, "0" ) )
+ {
+ value = "none";
+ }
}
/* Here's where the strings are passed to libx264 for parsing. */