[Ffmpeg-devel] Patch: wav decoder eof handling
Axel Holzinger
aholzinger
Wed Jun 28 09:41:03 CEST 2006
Hello Michael et al,
Michael Niedermayer wrote:
> should be int64_t / uint64_t to avoid a 2gb limit on the file
this is a good idea, but keep in mind that RIFF is always bound
to a maximum of 4GB file size, as all sizes in a RIFF file are
stored in 32 bit values.
To overcome this 4 GB border (many applications indeed have an
internal 2 GB border as they calculate in signed 32 bit) there
are file formats that go beyond the 4 GB like Wave64 or even more
promising RF64 (which uses RIFF technology for file sizes below
4 GB and expands to RF64 only when the file size exceeds 4 GB;
this can even be done while recording).
Without (future) support of file formats beyond 4 GB, I don't
see any need to use 64 bit addressing (if unsigned int 32 is
used there will be no 2 GB but a 4 GB border).
Regards
Axel
More information about the ffmpeg-devel
mailing list