[FFmpeg-devel] [PATCH] libavcodec/flacenc: add backward-compatible 32 bit-per-sample capability
Martijn van Beurden
mvanb1 at gmail.com
Sun Dec 19 23:41:14 EET 2021
Op zo 19 dec. 2021 om 22:11 schreef Lynne <dev at lynne.ee>:
> What happens if there's an overflow and the prediction coefficients
> are lowered? Is there a loss of bits? What about if it gives up?
The result remains lossless. If the prediction coefficients are
lowered, the residual of the prediction increases. This means the file
gets a little bigger, but the data is still all there.
If it gives up on searching for suitable LPC coefficients, it uses a
verbatim subframe instead of an LPC subframe. That means all data is
stored as unencoded PCM, with no form of prediction whatsoever. This
results in (usually a large) increase in storage space needed, but
this is still lossless.
More information about the ffmpeg-devel
mailing list