OSDN Git Service

Fix typo of variable name in JPEG decoding
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 14 Mar 2018 03:09:08 +0000 (11:09 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 14 Mar 2018 15:12:08 +0000 (23:12 +0800)
h2 is typo of h1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/gen75_mfd.c
src/gen7_mfd.c
src/gen8_mfd.c

index 19c3bbb..aa3aa4c 100644 (file)
@@ -2750,7 +2750,7 @@ gen75_mfd_jpeg_pic_state(VADriverContextP ctx,
         else if (h1 == 2 && h2 == 1 && h3 == 1 &&
                  v1 == 2 && v2 == 2 && v3 == 2)
             chroma_type = GEN7_YUV422H_4Y;
-        else if (h2 == 2 && h2 == 2 && h3 == 2 &&
+        else if (h1 == 2 && h2 == 2 && h3 == 2 &&
                  v1 == 2 && v2 == 1 && v3 == 1)
             chroma_type = GEN7_YUV422V_4Y;
         else
index 6805bd8..48b0c26 100644 (file)
@@ -2405,7 +2405,7 @@ gen7_mfd_jpeg_pic_state(VADriverContextP ctx,
         else if (h1 == 2 && h2 == 1 && h3 == 1 &&
                  v1 == 2 && v2 == 2 && v3 == 2)
             chroma_type = GEN7_YUV422H_4Y;
-        else if (h2 == 2 && h2 == 2 && h3 == 2 &&
+        else if (h1 == 2 && h2 == 2 && h3 == 2 &&
                  v1 == 2 && v2 == 1 && v3 == 1)
             chroma_type = GEN7_YUV422V_4Y;
         else
index 93ec4f7..2bc97cf 100644 (file)
@@ -2458,7 +2458,7 @@ gen8_mfd_jpeg_pic_state(VADriverContextP ctx,
         else if (h1 == 2 && h2 == 1 && h3 == 1 &&
                  v1 == 2 && v2 == 2 && v3 == 2)
             chroma_type = GEN7_YUV422H_4Y;
-        else if (h2 == 2 && h2 == 2 && h3 == 2 &&
+        else if (h1 == 2 && h2 == 2 && h3 == 2 &&
                  v1 == 2 && v2 == 1 && v3 == 1)
             chroma_type = GEN7_YUV422V_4Y;
         else