From 6da5c2841fea70dd72bf5d880118dfc1701bd924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Fri, 28 Jan 2011 23:29:14 +0100 Subject: Fix pitches for clearing surface. --HG-- extra : rebase_source : 686c74f934f4f780d08909c24238114cc9f64f4c --- src/video_out/video_out_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index 31cb03a72..e391fdecc 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -1127,7 +1127,7 @@ static void vdpau_update_frame_format (vo_driver_t *this_gen, vo_frame_t *frame_ else { uint8_t *cb = malloc( frame->width * frame->height ); memset( cb, 127, frame->width * frame->height ); - uint32_t pitches[] = { frame->width, frame->height, frame->height }; + uint32_t pitches[] = { frame->width, frame->width, frame->width }; void* data[] = { cb, cb, cb }; VdpStatus st = vdp_video_surface_putbits_ycbcr( frame->vdpau_accel_data.surface, VDP_YCBCR_FORMAT_YV12, &data, pitches ); if ( st!=VDP_STATUS_OK ) -- cgit v1.2.3