st/vdpau: Fix vlVdpVideoSurfaceSize for interlaced buffers

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
This commit is contained in:
Maarten Lankhorst
2012-11-17 13:22:39 +01:00
parent a204e26495
commit c64adedc5f

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