diff mbox series

[FFmpeg-devel,v2,05/71] avcodec/ratecontrol: Avoid padding in RateControlEntry

Message ID GV1P250MB07379AC265DD7CF39BB4D6148FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,v2,01/71] avcodec/ratecontrol: Fix double free on error | expand

Commit Message

Andreas Rheinhardt May 11, 2024, 8:50 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/ratecontrol.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/ratecontrol.h b/libavcodec/ratecontrol.h
index 1b49889f75..4d71a181b5 100644
--- a/libavcodec/ratecontrol.h
+++ b/libavcodec/ratecontrol.h
@@ -39,6 +39,9 @@  typedef struct Predictor{
 typedef struct RateControlEntry{
     int pict_type;
     float qscale;
+    int i_count;
+    int f_code;
+    int b_code;
     int mv_bits;
     int i_tex_bits;
     int p_tex_bits;
@@ -49,9 +52,6 @@  typedef struct RateControlEntry{
     float new_qscale;
     int64_t mc_mb_var_sum;
     int64_t mb_var_sum;
-    int i_count;
-    int f_code;
-    int b_code;
 }RateControlEntry;
 
 /**