endianess fix by Colin Leroy <colin@colino.net>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6763 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-07-21 12:13:40 +00:00
parent 2d9662d5ef
commit 8b9de50aff
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ static void uninit(){
if(ao_pcm_waveheader && fseek(fp, 0, SEEK_SET) == 0){ /* Write wave header */
wavhdr.file_length = wavhdr.data_length + sizeof(wavhdr) - 8;
wavhdr.file_length = le2me_32(wavhdr.file_length);
wavhdr.data_length = le2me_32(wavhdr.data_length);
fwrite(&wavhdr,sizeof(wavhdr),1,fp);
}
fclose(fp);