Mercurial > mplayer.hg
changeset 23619:ac2d6f1d982c
Avoid vo_sdl void * arithmetic
author | reimar |
---|---|
date | Sun, 24 Jun 2007 11:07:47 +0000 |
parents | c1ef739c185e |
children | 358aa103e796 |
files | libvo/vo_sdl.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_sdl.c Sun Jun 24 11:04:02 2007 +0000 +++ b/libvo/vo_sdl.c Sun Jun 24 11:07:47 2007 +0000 @@ -1687,11 +1687,11 @@ 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; } }