[Ffmpeg-devel] Patch: wav decoder eof handling

Måns Rullgård mru
Wed Jun 28 10:39:45 CEST 2006


Ulrich von Zadow said:
> Axel Holzinger wrote:
>> 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.
>
> There are unsigned 32-bit size values in the file, so each chunk can be up to
> 4 gb in length. A multi-chunk wave file could in theory be larger than 4 gb.

No, the main RIFF chunk covers the entire file, so there is a 4GB limit.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list