mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 05:41:16 +00:00
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:
parent
2d9662d5ef
commit
8b9de50aff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user