Avoid void * arithmetic

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23936 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-07-30 14:52:07 +00:00
parent 3b9d93025f
commit 1233361b46
1 changed files with 2 additions and 2 deletions

View File

@ -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;