Module: Mesa
Branch: master
Commit: c64adedc5f85f46276f4a1ccd81a82304b7e341d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c64adedc5f85f46276f4a1ccd81a82304b7e341d

Author: Maarten Lankhorst <[email protected]>
Date:   Sat Nov 17 13:22:39 2012 +0100

st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers

Signed-off-by: Maarten Lankhorst <[email protected]>

---

 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;
 }
 
 /**

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to