PR #23338 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23338
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23338.patch

Reduces sizeof(AACPCEInfo) from 296 to 120 bytes.
This reduces .rodata by 4576B here.

Signed-off-by: Andreas Rheinhardt <[email protected]>


>From 674bfb0fe3d4594f43dc76c28a2b81625f0037d1 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <[email protected]>
Date: Thu, 4 Jun 2026 18:59:47 +0200
Subject: [PATCH] avcodec/aacenc: Make AACPCEInfo smaller

Reduces sizeof(AACPCEInfo) from 296 to 120 bytes.
This reduces .rodata by 4576B here.

Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/aacenc.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h
index 51a216e6d0..61a9e6102b 100644
--- a/libavcodec/aacenc.h
+++ b/libavcodec/aacenc.h
@@ -167,9 +167,9 @@ typedef struct AACQuantizeBandCostCacheEntry {
 
 typedef struct AACPCEInfo {
     AVChannelLayout layout;
-    int num_ele[4];                              ///< front, side, back, lfe
-    int pairing[3][8];                           ///< front, side, back
-    int index[4][8];                             ///< front, side, back, lfe
+    uint8_t num_ele[4];                          ///< front, side, back, lfe
+    uint8_t pairing[3][8];                       ///< front, side, back
+    uint8_t index[4][8];                         ///< front, side, back, lfe
     uint8_t config_map[16];                      ///< configs the encoder's 
channel specific settings
     uint8_t reorder_map[16];                     ///< maps channels from lavc 
to aac order
 } AACPCEInfo;
-- 
2.52.0

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

Reply via email to