[Libva] [PATCH Intel VA] Fix if statement checking sampling factor for YUV422V_4Y
Xiang, Haihao
haihao.xiang at intel.com
Sat Sep 5 22:32:04 PDT 2015
Thanks for the patch, applied.
Haihao
> Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
> ---
> src/gen75_mfd.c | 2 +-
> src/gen7_mfd.c | 2 +-
> src/gen8_mfd.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
> index 9ec9ab0..9d478ec 100644
> --- a/src/gen75_mfd.c
> +++ b/src/gen75_mfd.c
> @@ -2196,7 +2196,7 @@ gen75_mfd_jpeg_decode_init(VADriverContextP ctx,
> v1 == 2 && v2 == 2 && v3 == 2) {
> subsampling = SUBSAMPLE_YUV422H;
> fourcc = VA_FOURCC_422H;
> - } else if (h2 == 2 && h2 == 2 && h3 == 2 &&
> + } else if (h1 == 2 && h2 == 2 && h3 == 2 &&
> v1 == 2 && v2 == 1 && v3 == 1) {
> subsampling = SUBSAMPLE_YUV422V;
> fourcc = VA_FOURCC_422V;
> diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
> index 60b23af..1a26e0c 100755
> --- a/src/gen7_mfd.c
> +++ b/src/gen7_mfd.c
> @@ -1880,7 +1880,7 @@ gen7_mfd_jpeg_decode_init(VADriverContextP ctx,
> v1 == 2 && v2 == 2 && v3 == 2) {
> subsampling = SUBSAMPLE_YUV422H;
> fourcc = VA_FOURCC_422H;
> - } else if (h2 == 2 && h2 == 2 && h3 == 2 &&
> + } else if (h1 == 2 && h2 == 2 && h3 == 2 &&
> v1 == 2 && v2 == 1 && v3 == 1) {
> subsampling = SUBSAMPLE_YUV422V;
> fourcc = VA_FOURCC_422V;
> diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c
> index 8fb95c7..e87155c 100644
> --- a/src/gen8_mfd.c
> +++ b/src/gen8_mfd.c
> @@ -1909,7 +1909,7 @@ gen8_mfd_jpeg_decode_init(VADriverContextP ctx,
> v1 == 2 && v2 == 2 && v3 == 2) {
> subsampling = SUBSAMPLE_YUV422H;
> fourcc = VA_FOURCC_422H;
> - } else if (h2 == 2 && h2 == 2 && h3 == 2 &&
> + } else if (h1 == 2 && h2 == 2 && h3 == 2 &&
> v1 == 2 && v2 == 1 && v3 == 1) {
> subsampling = SUBSAMPLE_YUV422V;
> fourcc = VA_FOURCC_422V;
More information about the Libva
mailing list