From b75714ec3263ecd0e1b1bb410edb5616c4addfe2 Mon Sep 17 00:00:00 2001
From: jstebbins <jstebbins.hb@gmail.com>
Date: Fri, 29 May 2015 22:17:14 +0000
Subject: [PATCH] preset: fix application of VideoScaler to job

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libhb/preset.c b/libhb/preset.c
index 4066b2bec..7f43b4570 100644
--- a/libhb/preset.c
+++ b/libhb/preset.c
@@ -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));
         }
-- 
2.40.0