[MPlayer-dev-eng] [PATCH] wav max filesize should be 4G, not 2G
Rob McMullen
robm at users.sourceforge.net
Sat May 1 01:15:27 CEST 2010
On Fri, Apr 30, 2010 at 12:35 PM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> Not all programs do it correctly, some (unfortunately which
> I fear nobody knows) read it as signed and thus can not read
> it at all.
Anything mplayer writes out that's less than 2GB would still be able
to be read by faulty programs that ignore the spec and read it as
signed. You object to, say, a 0x90000000 byte .wav that with this
patch would cause faulty programs to see a negative size instead of
0x7ffff000 bytes?
> Also it's not a particularly great solution anyway, it just
> pushes the issue a little bit further.
You want an option to -ao pcm to allow conforming 4GB wav? Or more
correctly from my perspective: an option to force the header to
truncate at 2GB? Something like:
-ao pcm:fast:waveheader:legacy
where "legacy" would produce the signed-compatible wave header,
otherwise it would default to the full 32 bit unsigned header.
Rob
More information about the MPlayer-dev-eng
mailing list