summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-01-15 20:16:51 +0000
committersr55 <[email protected]>2017-01-15 20:16:51 +0000
commitd8aeda196a508952a230402787227b2640d4e884 (patch)
tree877e6026455da192435a8a3dd6fc184ef7451813
parent790ee3501cffe1cdfdf13e427fb699ccdc2c0ada (diff)
cli: Adding hb_opencl_set_enable when --use-opencl is set. #496
-rw-r--r--test/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index d48e88a8b..2e9c115f9 100644
--- a/test/test.c
+++ b/test/test.c
@@ -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",