summaryrefslogtreecommitdiff
path: root/src/player.cc
diff options
context:
space:
mode:
authordeva <deva>2005-04-18 09:18:24 +0000
committerdeva <deva>2005-04-18 09:18:24 +0000
commita33c36fa2c1af21252a3afce45b96e0b02923c90 (patch)
tree69f0078d1af618f91fdb16a55b585a11564f8a37 /src/player.cc
parent34c282721b819e419f378f64b6440fc65461321e (diff)
pitch readback in seperate int array
Diffstat (limited to 'src/player.cc')
-rw-r--r--src/player.cc8
1 files changed, 6 insertions, 2 deletions
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;