From a33c36fa2c1af21252a3afce45b96e0b02923c90 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 18 Apr 2005 09:18:24 +0000 Subject: pitch readback in seperate int array --- src/player.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/player.cc b/src/player.cc index 1f00c19..12c8c17 100644 --- a/src/player.cc +++ b/src/player.cc @@ -92,7 +92,7 @@ void Player::player() Frame *frame; // AVPicture pict; unsigned char pixel_buffer[720 * 576][3]; - // int pitches[3]; + int pitches[3]; int i; struct timespec ts; @@ -151,7 +151,11 @@ void Player::player() (const uint8_t*)frame->data, e_dv_color_yuv, overlay->pixels, - (int*)overlay->pitches); + pitches); + + overlay->pitches[0] = picthes[0]; + overlay->pitches[1] = picthes[1]; + overlay->pitches[2] = picthes[2]; // SDL_LockYUVOverlay(overlay); // overlay->pixels = (Uint8**)pixel_buffer; -- cgit v1.2.3