[MPlayer-dev-eng] [PATCH] read wav files in nBlockAlign chunks

Roberto Togni r_togni at tiscali.it
Fri Jan 6 03:03:39 CET 2006


Hi all.

This patch changes the way wav files are read: now MPlayer reads blocks
of size nAvgBytesPerSec, with this patch it uses nBlockAlign sized
blocks. The same method is used in lavf.
This is needed for codecs where block size matters, to avoid buffering
data in the codec.

This fixes truespeech in wav with lavc native codec.

Please comment if you think it may break something; i plan to commit it
soon.

Ciao,
 Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_audio.c.diff
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060106/a7b981d9/attachment.bin>


More information about the MPlayer-dev-eng mailing list