mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 10:32:15 +00:00
10l Diego, revert commit 24966.
We do not have policy of restoring bugs when bug is fixed by accident. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24967 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3d6a73e3e5
commit
1479f405f6
@ -1186,8 +1186,8 @@ static uint32_t get_image(mp_image_t *mpi)
|
||||
if (!frame) {
|
||||
if(mpi->flags&MP_IMGFLAG_PLANAR){
|
||||
mpi->planes[0]= dst + yoffset * pitch + xoffset;
|
||||
mpi->planes[1]+= (yoffset * pitch) >> (2 + xoffset) >> 1;
|
||||
mpi->planes[2]+= (yoffset * pitch) >> (2 + xoffset) >> 1;
|
||||
mpi->planes[1]+= ((yoffset * pitch) >> 2) + (xoffset >> 1);
|
||||
mpi->planes[2]+= ((yoffset * pitch) >> 2) + (xoffset >> 1);
|
||||
} else {
|
||||
mpi->planes[0]=dst + yoffset * pitch + xoffset * (mpi->bpp >> 3);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user