summaryrefslogtreecommitdiffstats
path: root/libhb/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/scan.c')
-rw-r--r--libhb/scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index 535baea39..f827245e1 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -8,6 +8,7 @@
*/
#include "hb.h"
+#include "opencl.h"
#include "hbffmpeg.h"
#include "a52dec/a52.h"
@@ -868,6 +869,9 @@ skip_preview:
title->video_decode_support = vid_info.video_decode_support;
+ // TODO: check video dimensions
+ title->opencl_support = !!hb_opencl_available();
+
// compute the aspect ratio based on the storage dimensions and the
// pixel aspect ratio (if supplied) or just storage dimensions if no PAR.
title->aspect = (double)title->width / (double)title->height;