diff options
| -rw-r--r-- | src/player.cc | 8 | 
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; | 
