summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-11-17 13:22:39 +0100
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-11-17 13:25:08 +0100
commitc64adedc5f85f46276f4a1ccd81a82304b7e341d (patch)
treec58d8549ca14d6d29c0365fa90917a5b51b8763d
parenta204e2649545a063b288badd57fd94a286971a1e (diff)
st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index bcc33c0f9b..c987979f1f 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -178,9 +178,9 @@ vlVdpVideoSurfaceSize(vlVdpSurface *p_surf, int component,
} else if (p_surf->templat.chroma_format == PIPE_VIDEO_CHROMA_FORMAT_422) {
*height /= 2;
}
- if (p_surf->templat.interlaced)
- *height /= 2;
}
+ if (p_surf->templat.interlaced)
+ *height /= 2;
}
/**