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 e2e889d9da aacenc: reduce automatic cutoffs at high rates by 2Khz
e2e889d9da is described below

commit e2e889d9da7c065009198e3cc7b97cc1c47895f8
Author:     Lynne <[email protected]>
AuthorDate: Thu Jul 2 01:13:49 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Thu Jul 2 01:14:55 2026 +0900

    aacenc: reduce automatic cutoffs at high rates by 2Khz
    
    We were spending too many bits coding useless junk.
---
 libavcodec/aacenc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 468fdf222c..d5abb0aa77 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -1590,10 +1590,9 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
          * over a variable cutoff x bitrate combo */
         if (s->options.coder == AAC_CODER_NMR && frame_br >= 32000) {
             static const int rates[] = { 32000, 48000, 64000, 96000 };
-            static const int bws[]   = { 14000, 15000, 18000, 20000 };
+            static const int bws[]   = { 14000, 15000, 16000, 18000 };
             int bw_i = 0;
-            for (; bw_i < FF_ARRAY_ELEMS(rates) - 2 && frame_br > rates[bw_i + 
1]; bw_i++)
-                ;
+            for (; bw_i < FF_ARRAY_ELEMS(rates) - 2 && frame_br > rates[bw_i + 
1]; bw_i++);
             s->bandwidth = bws[bw_i] + (int)((int64_t)(bws[bw_i + 1] - 
bws[bw_i]) *
                                              (frame_br - rates[bw_i]) / 
(rates[bw_i + 1] - rates[bw_i]));
             s->bandwidth = FFMIN3(s->bandwidth, 22000, avctx->sample_rate / 2);

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

Reply via email to