changeset 23916:b3726f27695f

Avoid void * arithmetic
author reimar
date Mon, 30 Jul 2007 14:52:07 +0000
parents 4e501436bbef
children c23bbfc21ef6
files libmpcodecs/vd_libmpeg2.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Mon Jul 30 13:58:45 2007 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Mon Jul 30 14:52:07 2007 +0000
@@ -149,7 +149,7 @@
     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 @@
 	    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;