summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
diff options
context:
space:
mode:
authorThomas Balling Sørensen <tball@tball-laptop.(none)>2010-10-08 13:59:31 +0200
committerThomas Balling Sørensen <tball@tball-laptop.(none)>2010-10-08 13:59:31 +0200
commit7d2bdc2d4db8321a72edcc921a0fcfa4e4d41ef9 (patch)
treedcc405ace707c0793d87e411db12030933bece59 /src/gallium/state_trackers/vdpau/surface.c
parentbff1ac875c2c62ba5045bb953f800253c49361cb (diff)
vl: bitstream decoder finds startcodes
Diffstat (limited to 'src/gallium/state_trackers/vdpau/surface.c')
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index f957d94bdf7..9b6dac9c3f4 100644
--- a/src/gallium/state_trackers/vdpau/surface.c
+++ b/src/gallium/state_trackers/vdpau/surface.c
@@ -30,7 +30,6 @@
#include <pipe/p_state.h>
#include <util/u_memory.h>
#include <util/u_format.h>
-#include <stdio.h>
VdpStatus
vlVdpVideoSurfaceCreate(VdpDevice device,
@@ -68,8 +67,10 @@ vlVdpVideoSurfaceCreate(VdpDevice device,
goto inv_device;
}
- p_surf->chroma_format = FormatToPipe(chroma_type);
+ p_surf->chroma_format = TypeToPipe(chroma_type);
p_surf->device = dev;
+ p_surf->width = width;
+ p_surf->height = height;
*surface = vlAddDataHTAB(p_surf);
if (*surface == 0) {