diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-30 14:52:07 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-30 14:52:07 +0000 |
commit | 1233361b465319491bdda3c00a887364259a2ce6 (patch) | |
tree | ee69b06a573414ae6aed5112559bca1a540b7ecf /libmpcodecs/vd_libmpeg2.c | |
parent | 3b9d93025fccb34c37d24099879350973256ef41 (diff) | |
download | mpv-1233361b465319491bdda3c00a887364259a2ce6.tar.bz2 mpv-1233361b465319491bdda3c00a887364259a2ce6.tar.xz |
Avoid void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23936 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_libmpeg2.c')
-rw-r--r-- | libmpcodecs/vd_libmpeg2.c | 4 |
1 files 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; |