]> granicus.if.org Git - handbrake/commitdiff
QSV: early init for QSV caps
authorhandbrake <no-reply@handbrake.fr>
Wed, 26 Jun 2013 11:30:01 +0000 (11:30 +0000)
committerhandbrake <no-reply@handbrake.fr>
Wed, 26 Jun 2013 11:30:01 +0000 (11:30 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5612 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/hb.c

index 950e31c798b102ad7879a7e2150fe2483265ccde..4b0a348241bd0c0fd2626b15b214f6a6d965bd90 100644 (file)
@@ -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;
 }