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 022240d..3b36430 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'):