[MPlayer-cvslog] r23639 - trunk/libvo/vo_sdl.c

reimar subversion at mplayerhq.hu
Sun Jun 24 13:07:47 CEST 2007


Author: reimar
Date: Sun Jun 24 13:07:47 2007
New Revision: 23639

Log:
Avoid vo_sdl void * arithmetic


Modified:
   trunk/libvo/vo_sdl.c

Modified: trunk/libvo/vo_sdl.c
==============================================================================
--- trunk/libvo/vo_sdl.c	(original)
+++ trunk/libvo/vo_sdl.c	Sun Jun 24 13:07:47 2007
@@ -1687,11 +1687,11 @@ static uint32_t get_image(mp_image_t *mp
                 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;
             }
         }



More information about the MPlayer-cvslog mailing list