The branch, master has been updated
       via  3800421e7cb4372b756542ff4918102505ffb5f4 (commit)
      from  a700f0f72d1f073e5adcfbb16f4633850b0ef51c (commit)


- Log -----------------------------------------------------------------
commit 3800421e7cb4372b756542ff4918102505ffb5f4
Author:     damitha <[email protected]>
AuthorDate: Sun Aug 31 06:50:48 2025 +1000
Commit:     Lynne <[email protected]>
CommitDate: Wed Sep 3 06:48:02 2025 +0000

    add clamping for escpase coeff

diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c
index 96915c9731..7f1c4cdcc1 100644
--- a/libavcodec/aaccoder.c
+++ b/libavcodec/aaccoder.c
@@ -173,7 +173,7 @@ static av_always_inline float 
quantize_and_encode_band_cost_template(
             if (BT_ESC) {
                 for (int j = 0; j < 2; j++) {
                     if (ff_aac_codebook_vectors[cb-1][curidx*2+j] == 64.0f) {
-                        int coef = av_clip_uintp2(quant(fabsf(in[i+j]), Q, 
ROUNDING), 13);
+                        int coef = av_clip(quant(fabsf(in[i+j]), Q, ROUNDING), 
16, (1 << 13) - 1);
                         int len = av_log2(coef);
 
                         put_bits(pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2);

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/aaccoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to