This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch release/8.1
in repository ffmpeg.
The following commit(s) were added to refs/heads/release/8.1 by this push:
new 43a4771cd0 opus/dec_celt: avoid emph_coeff becoming a subnormal
43a4771cd0 is described below
commit 43a4771cd06600fa95dbea7ddc8774537d537771
Author: Anton Khirnov <[email protected]>
AuthorDate: Sat Mar 14 20:29:36 2026 +0100
Commit: Lynne <[email protected]>
CommitDate: Mon Mar 16 11:53:14 2026 +0100
opus/dec_celt: avoid emph_coeff becoming a subnormal
This happens for silence frames, which on many CPUs massively slows down
processing the decoded output.
Cf. https://github.com/Genymobile/scrcpy/issues/6715
(cherry picked from commit 5b112b17c009b57a0063ca965dd49dc7e018d771)
---
libavcodec/opus/dec_celt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/opus/dec_celt.c b/libavcodec/opus/dec_celt.c
index 3feb4a4e47..a43d63d9db 100644
--- a/libavcodec/opus/dec_celt.c
+++ b/libavcodec/opus/dec_celt.c
@@ -463,6 +463,8 @@ int ff_celt_decode_frame(CeltFrame *f, OpusRangeCoder *rc,
block->emph_coeff,
ff_opus_deemph_weights,
frame_size);
+ if (!isnormal(block->emph_coeff))
+ block->emph_coeff = 0.0;
}
if (channels == 1)
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]