mirror of
https://github.com/mpv-player/mpv
synced 2024-10-02 16:25:33 +02:00
Set block_align in header, seems MatLab can not handle files without.
Patch by Pedro Larroy Tovar (pedro at larroy dot com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16244 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c9d0af5395
commit
252d940dd8
@ -120,6 +120,7 @@ static int init(int rate,int channels,int format,int flags){
|
||||
wavhdr.sample_rate = le2me_32(ao_data.samplerate);
|
||||
wavhdr.bytes_per_second = le2me_32(ao_data.bps);
|
||||
wavhdr.bits = le2me_16(bits);
|
||||
wavhdr.block_align = le2me_16(ao_data.channels * (bits / 8));
|
||||
|
||||
wavhdr.data_length=le2me_32(0x7ffff000);
|
||||
wavhdr.file_length = wavhdr.data_length + sizeof(wavhdr) - 8;
|
||||
|
Loading…
Reference in New Issue
Block a user