st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Sat, 17 Nov 2012 12:22:39 +0000 (13:22 +0100)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Sat, 17 Nov 2012 12:25:08 +0000 (13:25 +0100)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
src/gallium/state_trackers/vdpau/surface.c

index bcc33c0f9b02fb2fced3b0338c9386b01fa0a7ad..c987979f1f4e50eb7639a18f345655d48271e9ad 100644 (file)
@@ -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;
 }
 
 /**