diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-24 18:19:14 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-24 18:19:14 +0000 |
commit | 4a1e0aef9b8b4d4ef4fd3aa51d032a9a2ceb4cb3 (patch) | |
tree | 5d836e847a5b9ec32e9830bca6cda05d075abb14 /libvo/vo_xv.c | |
parent | 7bb3412a058c1a217fce301105e7699de7e87db5 (diff) |
fixed U/V swapping for direct rendering, and 3rd plane offset calculation when height!=0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5312 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 81eeff4157..bc23031266 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -716,8 +716,9 @@ static uint32_t get_image(mp_image_t *mpi){ if(mpi->width==image_width){ if(mpi->flags&MP_IMGFLAG_PLANAR){ mpi->planes[0]=xvimage[current_buf]->data; - mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height; - mpi->planes[2]=xvimage[current_buf]->data+image_width*image_height*5/4; + mpi->planes[2]=xvimage[current_buf]->data+image_width*image_height; +// mpi->planes[1]=xvimage[current_buf]->data+image_width*image_height*5/4; + mpi->planes[1]=mpi->planes[2]+(image_width>>1)*(image_height>>1); mpi->stride[0]=image_width; mpi->stride[1]=mpi->stride[2]=image_width/2; } else { |