[MPlayer-cvslog] r35981 - trunk/libvo/vosub_vidix.c

reimar subversion at mplayerhq.hu
Sat Mar 16 16:17:27 CET 2013


Author: reimar
Date: Sat Mar 16 16:17:26 2013
New Revision: 35981

Log:
Use uint8_t to avoid signed vs. unsigned char issues.

Merge declaration and assignment while at it.

Modified:
   trunk/libvo/vosub_vidix.c

Modified: trunk/libvo/vosub_vidix.c
==============================================================================
--- trunk/libvo/vosub_vidix.c	Sat Mar 16 15:32:59 2013	(r35980)
+++ trunk/libvo/vosub_vidix.c	Sat Mar 16 16:17:26 2013	(r35981)
@@ -290,8 +290,7 @@ static void     vidix_flip_page(void)
 static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
 {
     uint32_t apitch,bespitch;
-    char *lvo_mem;
-    lvo_mem = vidix_mem + vidix_play.offsets[next_frame] + vidix_play.offset.y;
+    uint8_t *lvo_mem = vidix_mem + vidix_play.offsets[next_frame] + vidix_play.offset.y;
     apitch = vidix_play.dest.pitch.y-1;
     switch(vidix_play.fourcc){
     case IMGFMT_NV12:


More information about the MPlayer-cvslog mailing list