Bug 2418595

Summary: FLAC__lpc_quantize_coefficients debug logs displayed when encoding with small blocksize
Product: [Fedora] Fedora Reporter: David Warner <david.p.warner>
Component: flacAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: ajax, fhrdina, mclasen, mlichvar, rstrode
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: flac-1.5.0-5.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-05 02:11:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Warner 2025-12-03 13:10:19 UTC
flac 1.5.0 in Fedora 43 prints out large numbers of debug lines in the form
`FLAC__lpc_quantize_coefficients: negative shift=%d order=%u cmax=%f`
when encoding with certain parameters (specifically a small block size and the exhaustive model search option).

Example command line:
`flac -8e -f --blocksize 256 -o /dev/null input.wav`

This happens even when `--totally-silent` is provided.

The log itself seems to be just for debugging: https://github.com/xiph/flac/blob/9547dbc2ddfca06a70ea937dbb605bbe78ea5f90/src/libFLAC/lpc.c#L292

Can NDEBUG be set when compiling this package?

Reproducible: Always

Steps to Reproduce:
1. Encode file with small block size and high compression options, `flac -8e -f --blocksize 256 -o /dev/null input.wav`
Actual Results:
Lots of debug log lines.

Expected Results:
No debug log lines.

Comment 1 Miroslav Lichvar 2025-12-03 13:33:31 UTC
This was fixed recently for rawhide in bug ##2416751.

I'll submit a build for f43.

Comment 2 Fedora Update System 2025-12-03 13:47:57 UTC
FEDORA-2025-b74eaa8f9e (flac-1.5.0-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b74eaa8f9e

Comment 3 David Warner 2025-12-03 22:47:51 UTC
Thanks. Not sure why I couldn't find that earlier bug report - Google's results for 'FLAC__lpc_quantize_coefficients' are useless.

Comment 4 Fedora Update System 2025-12-04 01:21:12 UTC
FEDORA-2025-b74eaa8f9e has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b74eaa8f9e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b74eaa8f9e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-12-05 02:11:31 UTC
FEDORA-2025-b74eaa8f9e (flac-1.5.0-5.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.