]> granicus.if.org Git - handbrake/commitdiff
Handle bad x264 options more gracefully (don't crash, and inform the user even if...
authorjbrjake <jb.rubin@gmail.com>
Wed, 28 Feb 2007 22:18:21 +0000 (22:18 +0000)
committerjbrjake <jb.rubin@gmail.com>
Wed, 28 Feb 2007 22:18:21 +0000 (22:18 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.8.0_beta2_5.1@413 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/encx264.c

index a2c51bff2912fc9d204569f2644018eaba427921..69739635b8aa9b3c072690e55b5731b651187a56 100644 (file)
@@ -126,14 +126,11 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job )
        
                        /*      Let x264 sanity check the options for us*/
                if(ret == X264_PARAM_BAD_NAME)
-                       hb_log("Option x264encopts: Unknown suboption %s\n", name);
+                       printf("x264 options: Unknown suboption %s\n", name);
                if(ret == X264_PARAM_BAD_VALUE)
-                       hb_log("Option x264encopts: Bad argument %s=%s\n", name, value ? value : "(null)");
-               if(ret)
-                       return 0;
-
-                       }
+                       printf("x264 options: Bad argument %s=%s\n", name, value ? value : "(null)");
                }
+       }
 
 
        if( job->pixel_ratio )