From 82cb9ecad1eff3cbde808a6d58626450431d4a5e Mon Sep 17 00:00:00 2001 From: dynaflash Date: Thu, 27 Sep 2007 12:20:05 +0000 Subject: MacGui: Mod encx264.c to allow the queue to show the advanced x264 options in the encoding job. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@993 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encx264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libhb/encx264.c') diff --git a/libhb/encx264.c b/libhb/encx264.c index 95922d504..a061cf1f3 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -97,7 +97,7 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) Merritt implemented in the Mplayer/Mencoder project. */ - char *x264opts = job->x264opts; + char *x264opts = strdup(job->x264opts); if( x264opts != NULL && *x264opts != '\0' ) { while( *x264opts ) @@ -162,6 +162,7 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) hb_log( "x264 options: Bad argument %s=%s", name, value ? value : "(null)" ); } } + free(x264opts); if( job->pixel_ratio ) -- cgit v1.2.3