OSDN Git Service

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