]> granicus.if.org Git - handbrake/commitdiff
cli: Adding hb_opencl_set_enable when --use-opencl is set. #496
authorsr55 <sr55.hb@outlook.com>
Sun, 15 Jan 2017 20:16:51 +0000 (20:16 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 15 Jan 2017 20:17:03 +0000 (20:17 +0000)
test/test.c

index d48e88a8b71f869b5fba671dea64b09f438cd22d..2e9c115f977944a2ad228de5d4ff036b845769a2 100644 (file)
@@ -448,6 +448,11 @@ int main( int argc, char ** argv )
     hb_register_error_handler(&hb_cli_error_handler);
 
     hb_dvd_set_dvdnav( dvdnav );
+    
+    if (use_opencl == 1)
+    {
+        hb_opencl_set_enable(h, use_opencl);
+    }
 
     /* Show version */
     fprintf( stderr, "%s - %s - %s\n",