diff options
author | Rodeo <[email protected]> | 2013-11-02 20:48:34 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-11-02 20:48:34 +0000 |
commit | 4a08a924b074b2691950bf0beddecdb73658104f (patch) | |
tree | 1d69d7392509310fd3a5cd57255d0308858c3490 /libhb/stream.c | |
parent | b94f4686f052a9129c54b0bb5af39d6e86554872 (diff) |
OpenCL: initial work on a new OpenCl wrapper, which will eventually phase out the existing one.
Based on an x264 patch by Anton Mitrofanov.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5870 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 8a2e08dab..ac34cc550 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -1122,7 +1122,7 @@ hb_title_t * hb_stream_title_scan(hb_stream_t *stream, hb_title_t * title) title->hwd_support = 0; #endif #ifdef USE_OPENCL - if ( hb_confirm_gpu_type() == 0 ) + if (hb_confirm_gpu_type() == 0 && hb_opencl_available() == 1) title->opencl_support = 1; else title->opencl_support = 0; @@ -5688,7 +5688,7 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title ) title->hwd_support = 0; #endif #ifdef USE_OPENCL - if (hb_confirm_gpu_type() == 0) + if (hb_confirm_gpu_type() == 0 && hb_opencl_available() == 1) title->opencl_support = 1; else title->opencl_support = 0; |