Mesa (master): st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers
Maarten Lankhorst
mlankhorst at kemper.freedesktop.org
Sat Nov 17 12:25:22 UTC 2012
Module: Mesa
Branch: master
Commit: c64adedc5f85f46276f4a1ccd81a82304b7e341d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c64adedc5f85f46276f4a1ccd81a82304b7e341d
Author: Maarten Lankhorst <maarten.lankhorst at canonical.com>
Date: Sat Nov 17 13:22:39 2012 +0100
st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
---
src/gallium/state_trackers/vdpau/surface.c | 4 ++--
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 bcc33c0..c987979 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;
}
/**
More information about the mesa-commit
mailing list