From 1233361b465319491bdda3c00a887364259a2ce6 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 30 Jul 2007 14:52:07 +0000 Subject: [PATCH] Avoid void * arithmetic git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23936 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_libmpeg2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/vd_libmpeg2.c b/libmpcodecs/vd_libmpeg2.c index f3ab4b853d..d28574fb18 100644 --- a/libmpcodecs/vd_libmpeg2.c +++ b/libmpcodecs/vd_libmpeg2.c @@ -149,7 +149,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ 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,void* data,int len,int flags){ 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;