From: Maarten Lankhorst Date: Sat, 17 Nov 2012 12:22:39 +0000 (+0100) Subject: st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c64adedc5f85f46276f4a1ccd81a82304b7e341d;p=mesa.git st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers Signed-off-by: Maarten Lankhorst --- 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; } /**