[Python-Dev] Expanding max chunk size to 4GB.

Mark Rages markrages at gmail.com
Wed Jul 6 18:46:12 CEST 2005


The RIFF chunk size (used by the Python wave library) is 2GB, because
the length is read as a signed 32-bit integer.

The attached patch to chunk.py raises the limit to 4GB by using a
signed integer.

Is this correct?

Is there a more general solution to 32-bit addressing limitation in
wave files?  Multiple chunks?  Set the length field to zero and let
software assume we only have one chunk?

Regards,
Mark Rages
markrages at gmail.com
-- 
You think that it is a secret, but it never has been one.
  - fortune cookie
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python.patch
Url: http://mail.python.org/pipermail/python-dev/attachments/20050706/f4ff3b68/python.diff


More information about the Python-Dev mailing list