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:
reimar 2007-06-24 11:07:47 +00:00
parent 51ffb15405
commit 576500d6a6
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}