st/va: Used correct parameter to derive the value of the "h" variable in vlVaCreateImage
authorIndrajit Das <indrajit-kumar.das@amd.com>
Thu, 15 Oct 2015 10:12:43 +0000 (15:42 +0530)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Oct 2015 07:47:24 +0000 (09:47 +0200)
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/va/image.c

index 022240df84f9045583d272cc06b05a64b599e47b..3b36430541e1c361271ae0ecc4a61c5cf06e4e1f 100644 (file)
@@ -116,7 +116,7 @@ vlVaCreateImage(VADriverContextP ctx, VAImageFormat *format, int width, int heig
    img->width = width;
    img->height = height;
    w = align(width, 2);
-   h = align(width, 2);
+   h = align(height, 2);
 
    switch (format->fourcc) {
    case VA_FOURCC('N','V','1','2'):