summaryrefslogtreecommitdiffstats
path: root/libhb/qsv_common.c
diff options
context:
space:
mode:
authorMax Dmytrychenko <[email protected]>2015-09-24 20:53:55 +0200
committerMax Dmytrychenko <[email protected]>2015-09-24 20:53:55 +0200
commit756b892f17069dd44385f8c085786921fcee3085 (patch)
treeb66ccd2bc72da4703ad984ed59148bbe07eea358 /libhb/qsv_common.c
parent78182d366b6f1981bd4300192dc174dd2123f4f5 (diff)
adjustment to report QSV availability in MASK form
Diffstat (limited to 'libhb/qsv_common.c')
-rw-r--r--libhb/qsv_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c
index 12f4d5e7b..c50be8901 100644
--- a/libhb/qsv_common.c
+++ b/libhb/qsv_common.c
@@ -144,8 +144,8 @@ static int qsv_implementation_is_hardware(mfxIMPL implementation)
int hb_qsv_available()
{
- return (hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H264) ||
- hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H265));
+ return (hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H264) ? HB_VCODEC_QSV_H264 : 0 |
+ hb_qsv_video_encoder_is_enabled(HB_VCODEC_QSV_H265) ? HB_VCODEC_QSV_H265 : 0);
}
int hb_qsv_video_encoder_is_enabled(int encoder)