OSDN Git Service

test: check whether MVC encoding is support
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 6 Apr 2017 14:26:09 +0000 (22:26 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 6 Apr 2017 14:52:11 +0000 (22:52 +0800)
This fixes https://github.com/01org/intel-vaapi-driver/issues/123

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit e3c99c4a993e4fc9d1c693a99453770bc0d95f1b)

test/i965_avce_test_common.cpp

index 14aa36c..46a2b20 100644 (file)
@@ -65,7 +65,9 @@ VAStatus CheckSupported(VAProfile profile, VAEntrypoint entrypoint)
     case VAProfileH264MultiviewHigh:
     case VAProfileH264StereoHigh:
         if (entrypoint == VAEntrypointEncSlice) {
-            return VA_STATUS_SUCCESS;
+            if (HAS_H264_MVC_ENCODING(i965)) {
+                return VA_STATUS_SUCCESS;
+            }
         }
         break;