Mercurial > mplayer.hg
diff libao2/ao_dxr2.c @ 25673:d576b679747b
Write functions used by send_mpeg_*_packet may _not_ modify data
author | reimar |
---|---|
date | Sat, 12 Jan 2008 16:05:04 +0000 |
parents | fa99b3d31d13 |
children | 9e739bdb049c |
line wrap: on
line diff
--- a/libao2/ao_dxr2.c Sat Jan 12 15:55:52 2008 +0000 +++ b/libao2/ao_dxr2.c Sat Jan 12 16:05:04 2008 +0000 @@ -157,7 +157,7 @@ static void dxr2_send_lpcm_packet(unsigned char* data,int len,int id,unsigned int timestamp,int freq_id) { - extern int write_dxr2(unsigned char *data, int len); + extern int write_dxr2(const unsigned char *data, int len); if(dxr2_fd < 0) { mp_msg(MSGT_AO,MSGL_ERR,"DXR2 fd is not valid\n"); @@ -176,7 +176,7 @@ // it should round it down to outburst*n // return: number of bytes played static int play(void* data,int len,int flags){ - extern int write_dxr2(unsigned char *data, int len); + extern int write_dxr2(const unsigned char *data, int len); // MPEG and AC3 don't work :-( if(ao_data.format==AF_FORMAT_MPEG2)