[MPlayer-cvslog] r23936 - trunk/libmpcodecs/vd_libmpeg2.c

reimar subversion at mplayerhq.hu
Mon Jul 30 16:52:08 CEST 2007


Author: reimar
Date: Mon Jul 30 16:52:07 2007
New Revision: 23936

Log:
Avoid void * arithmetic


Modified:
   trunk/libmpcodecs/vd_libmpeg2.c

Modified: trunk/libmpcodecs/vd_libmpeg2.c
==============================================================================
--- trunk/libmpcodecs/vd_libmpeg2.c	(original)
+++ trunk/libmpcodecs/vd_libmpeg2.c	Mon Jul 30 16:52:07 2007
@@ -149,7 +149,7 @@ static mp_image_t* decode(sh_video_t *sh
     if (mpeg2dec->pending_length) {
 	mpeg2_buffer (mpeg2dec, mpeg2dec->pending_buffer, mpeg2dec->pending_buffer + mpeg2dec->pending_length);
     } else {
-        mpeg2_buffer (mpeg2dec, data, data+len);
+        mpeg2_buffer (mpeg2dec, data, (uint8_t *)data+len);
     }
     
     while(1){
@@ -163,7 +163,7 @@ static mp_image_t* decode(sh_video_t *sh
 	    if (mpeg2dec->pending_length) {
 		// just finished the pending data, continue with processing of the passed buffer
 		mpeg2dec->pending_length = 0;
-    		mpeg2_buffer (mpeg2dec, data, data+len);
+    		mpeg2_buffer (mpeg2dec, data, (uint8_t *)data+len);
     	    } else {
 	        // parsing of the passed buffer finished, return.
 		return 0;



More information about the MPlayer-cvslog mailing list