This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 95a888b9ca aacenc_tns: tighten TNS toggle for short frames
95a888b9ca is described below
commit 95a888b9cadb4888d957797ba411b300422e81cc
Author: Lynne <[email protected]>
AuthorDate: Thu Jul 2 18:27:53 2026 +0900
Commit: Lynne <[email protected]>
CommitDate: Thu Jul 2 18:29:19 2026 +0900
aacenc_tns: tighten TNS toggle for short frames
Excessive TNS use for short frames resulted in audible popping at
high rates, this strictens the threshold conservatively.
---
libavcodec/aacenc_tns.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aacenc_tns.c b/libavcodec/aacenc_tns.c
index a45ca35f7d..c1308b1ebf 100644
--- a/libavcodec/aacenc_tns.c
+++ b/libavcodec/aacenc_tns.c
@@ -45,7 +45,7 @@
* post-quantization prediction gain clears a block-type-dependent bar (Apple
RE). */
#define TNS_PREDGAIN_GATE 1.4f /* first gate: predicted LPC gain */
#define TNS_PG_C1_LONG 1.4f /* min measured gain, long blocks */
-#define TNS_PG_C1_SHORT 2.2f /* min measured gain, short blocks */
+#define TNS_PG_C1_SHORT 3.2f /* min measured gain, short blocks */
#define TNS_PG_CLAMP 6.0f /* upper bound: poles near unit circle →
noise blowup */
#define TNS_WEIGHT_FLOOR 0.01f /* per-bin masking floor for the weighted
spectrum */
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]