diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2011-01-28 23:29:14 +0100 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2011-01-28 23:29:14 +0100 |
commit | 6da5c2841fea70dd72bf5d880118dfc1701bd924 (patch) | |
tree | 3eda23049798984401528a67af36b8f72727e037 /src | |
parent | c34ad15c065fec9d539cd0ca75593903865666a9 (diff) | |
download | xine-lib-6da5c2841fea70dd72bf5d880118dfc1701bd924.tar.gz xine-lib-6da5c2841fea70dd72bf5d880118dfc1701bd924.tar.bz2 |
Fix pitches for clearing surface.
--HG--
extra : rebase_source : 686c74f934f4f780d08909c24238114cc9f64f4c
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |