Re: 64-bit residuals

Miroslav Lichvar <[email protected]> Tue, 29 Mar 2022 11:43:43 +0200
Newsgroups gmane.comp.audio.compression.flac.devel
Message-ID <YkLUzyuNlFQB/BVV@localhost>
On Thu, Mar 24, 2022 at 05:05:02PM +0100, Martijn van Beurden wrote:
> 3) Add a note to the FLAC spec that residuals should not exceed
> 32-bit, and add a mechanism to the encoder to ascertain this. In case
> the encoder finds a residual exceeding the 32-bit range, it defaults
> to using a verbatim subframe.
> 
> Any thoughts?

The third option makes most sense to me. I don't think we should
complicate decoders by requiring them to support 64-bit residuals only
because it's technically possible to encode such a stream. Decoders
can produce wrong output or reject the stream as invalid, but they
should not crash.

-- 
Miroslav Lichvar