[MPlayer-cvslog] CVS: main/libao2 ao_pcm.c,1.29,1.30

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Aug 17 13:27:13 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv6541

Modified Files:
	ao_pcm.c 
Log Message:
Set block_align in header, seems MatLab can not handle files without.
Patch by Pedro Larroy Tovar (pedro at larroy dot com).


Index: ao_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_pcm.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- ao_pcm.c	19 Jan 2005 17:18:25 -0000	1.29
+++ ao_pcm.c	17 Aug 2005 11:27:11 -0000	1.30
@@ -120,6 +120,7 @@
 	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;




More information about the MPlayer-cvslog mailing list