summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Ritger <aritger@nvidia.com>2012-11-16 15:40:40 -0800
committerAaron Plattner <aplattner@nvidia.com>2012-11-20 09:51:12 -0800
commitbb73db54c3611d20babdb098aefa6d69a4e8c684 (patch)
treeef6d82d4d449475c24bd682a7c0afa9534faf9b9
parentdf16fd8e83b36e6e5bdb0e73ff57cb432d113a28 (diff)
vdpauinfo: use rgb_types[x].id, not chroma_types[x].id, as the VdpRGBAFormat argument to VdpOutputSurfaceQueryPutBitsYCbCrCapabilities().
Signed-off-by: Andy Ritger <aritger@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Jose Soltren <jsoltren@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--vdpauinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdpauinfo.cpp b/vdpauinfo.cpp
index aa39a70..7bc0499 100644
--- a/vdpauinfo.cpp
+++ b/vdpauinfo.cpp
@@ -161,7 +161,7 @@ void queryOutputSurface(VDPDeviceImpl *device)
{
is_supported = false;
rv = device->OutputSurfaceQueryPutBitsYCbCrCapabilities(
- device->device, chroma_types[x].id, ycbcr_types[y].id,
+ device->device, rgb_types[x].id, ycbcr_types[y].id,
&is_supported);
if(rv == VDP_STATUS_OK && is_supported)
{