vdpau/vl 422 chroma width/height mix up
[mesa.git] / src / gallium / state_trackers / vdpau / surface.c
index a26f9b6bb496b04c4bbd36d7b86e69533bd36e14..ab4d725cb362fe149b1966ee33467535daead19c 100644 (file)
@@ -174,7 +174,7 @@ vlVdpVideoSurfaceSize(vlVdpSurface *p_surf, int component,
          *width /= 2;
          *height /= 2;
       } else if (p_surf->templat.chroma_format == PIPE_VIDEO_CHROMA_FORMAT_422) {
-         *height /= 2;
+         *width /= 2;
       }
    }
    if (p_surf->templat.interlaced)