mirror of https://github.com/mpv-player/mpv
Avoid vo_sdl void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23639 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
51ffb15405
commit
576500d6a6
|
@ -1687,11 +1687,11 @@ static uint32_t get_image(mp_image_t *mpi)
|
|||
if(mpi->type == MP_IMGTYPE_STATIC && (priv->surface->flags & SDL_DOUBLEBUF))
|
||||
return VO_FALSE;
|
||||
|
||||
mpi->planes[0] = priv->surface->pixels + priv->y*priv->surface->pitch;
|
||||
mpi->planes[0] = (uint8_t *)priv->surface->pixels + priv->y*priv->surface->pitch;
|
||||
mpi->stride[0] = priv->surface->pitch;
|
||||
}
|
||||
else {
|
||||
mpi->planes[0] = priv->rgbsurface->pixels + priv->y*priv->rgbsurface->pitch;
|
||||
mpi->planes[0] = (uint8_t *)priv->rgbsurface->pixels + priv->y*priv->rgbsurface->pitch;
|
||||
mpi->stride[0] = priv->rgbsurface->pitch;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue