From c64adedc5f85f46276f4a1ccd81a82304b7e341d Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Sat, 17 Nov 2012 13:22:39 +0100 Subject: [PATCH] st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers Signed-off-by: Maarten Lankhorst --- src/gallium/state_trackers/vdpau/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index bcc33c0f9b0..c987979f1f4 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; } /** -- 2.30.2