changeset 35887:dfc7a72eb50f

Use uint8_t to avoid signed vs. unsigned char issues. Merge declaration and assignment while at it.
author reimar
date Sat, 16 Mar 2013 15:17:26 +0000
parents 4921bccc0968
children f464ea910bd2
files libvo/vosub_vidix.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Sat Mar 16 14:32:59 2013 +0000
+++ b/libvo/vosub_vidix.c	Sat Mar 16 15:17:26 2013 +0000
@@ -290,8 +290,7 @@
 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: