]> granicus.if.org Git - handbrake/commitdiff
preset: fix application of VideoScaler to job
authorjstebbins <jstebbins.hb@gmail.com>
Fri, 29 May 2015 22:17:14 +0000 (22:17 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Fri, 29 May 2015 22:17:14 +0000 (22:17 +0000)
Broken strcasecmp conditional caused OpenCl to be added to the job when
it should not have been and *not* added to the job when it should.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7241 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/preset.c

index 4066b2bec40970c6e6af8fa353694fd6775d7af3..7f43b45706f279556e30feb7012b840a0db75042 100644 (file)
@@ -1418,7 +1418,7 @@ int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict)
     if ((value = hb_dict_get(preset, "VideoScaler")) != NULL)
     {
         const char *s = hb_value_get_string(value);
-        if (strcasecmp(s, "opencl"))
+        if (!strcasecmp(s, "opencl"))
         {
             hb_dict_set(video_dict, "OpenCL", hb_value_bool(1));
         }