mirror of https://github.com/mpv-player/mpv
Avoid void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23936 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3b9d93025f
commit
1233361b46
|
@ -149,7 +149,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
||||||
if (mpeg2dec->pending_length) {
|
if (mpeg2dec->pending_length) {
|
||||||
mpeg2_buffer (mpeg2dec, mpeg2dec->pending_buffer, mpeg2dec->pending_buffer + mpeg2dec->pending_length);
|
mpeg2_buffer (mpeg2dec, mpeg2dec->pending_buffer, mpeg2dec->pending_buffer + mpeg2dec->pending_length);
|
||||||
} else {
|
} else {
|
||||||
mpeg2_buffer (mpeg2dec, data, data+len);
|
mpeg2_buffer (mpeg2dec, data, (uint8_t *)data+len);
|
||||||
}
|
}
|
||||||
|
|
||||||
while(1){
|
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) {
|
if (mpeg2dec->pending_length) {
|
||||||
// just finished the pending data, continue with processing of the passed buffer
|
// just finished the pending data, continue with processing of the passed buffer
|
||||||
mpeg2dec->pending_length = 0;
|
mpeg2dec->pending_length = 0;
|
||||||
mpeg2_buffer (mpeg2dec, data, data+len);
|
mpeg2_buffer (mpeg2dec, data, (uint8_t *)data+len);
|
||||||
} else {
|
} else {
|
||||||
// parsing of the passed buffer finished, return.
|
// parsing of the passed buffer finished, return.
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue