comparison mplayer.c @ 7486:8dcbed9ff5db

memcpy->memove (overlapping blocks) patch by Sidik Isani <lksi@cfht.hawaii.edu>
author arpi
date Sun, 22 Sep 2002 17:17:29 +0000
parents 44198b2f42db
children 229287c14cd4
comparison
equal deleted inserted replaced
7485:d772e0caac7b 7486:8dcbed9ff5db
1498 current_module="play_audio"; 1498 current_module="play_audio";
1499 playsize=audio_out->play(sh_audio->a_buffer,playsize,0); 1499 playsize=audio_out->play(sh_audio->a_buffer,playsize,0);
1500 1500
1501 if(playsize>0){ 1501 if(playsize>0){
1502 sh_audio->a_buffer_len-=playsize; 1502 sh_audio->a_buffer_len-=playsize;
1503 memcpy(sh_audio->a_buffer,&sh_audio->a_buffer[playsize],sh_audio->a_buffer_len); 1503 memmove(sh_audio->a_buffer,&sh_audio->a_buffer[playsize],sh_audio->a_buffer_len);
1504 sh_audio->timer+=playsize/(float)(sh_audio->o_bps); 1504 sh_audio->timer+=playsize/(float)(sh_audio->o_bps);
1505 } 1505 }
1506 1506
1507 break; 1507 break;
1508 } // while(sh_audio) 1508 } // while(sh_audio)