From 22b54ab45aaaa3523e3fb944d2938d582d6922ef Mon Sep 17 00:00:00 2001 From: handbrake Date: Wed, 26 Jun 2013 11:30:01 +0000 Subject: [PATCH] QSV: early init for QSV caps git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5612 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/hb.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libhb/hb.c b/libhb/hb.c index 950e31c79..4b0a34824 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1858,6 +1858,15 @@ int hb_global_init() return -1; } +#ifdef USE_QSV + result = hb_qsv_info_init(); + if (result < 0) + { + hb_error("hb_qsv_info_init failed!"); + return -1; + } +#endif + /* libavcodec */ hb_avcodec_init(); @@ -1898,15 +1907,6 @@ int hb_global_init() hb_common_global_init(); -#ifdef USE_QSV - result = hb_qsv_info_init(); - if (result < 0) - { - hb_error("hb_qsv_info_init failed!"); - return -1; - } -#endif - return result; } -- 2.40.0