diff mbox series

[FFmpeg-devel,02/12] avcodec/h2645_parse: Move ref_idc further up in H2645NAL

Message ID AM7PR03MB66608A22ABE2AF1FF5FCA3218F729@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit aba4a4f080b2c0aa96409f93f455f9870fabbe2d
Headers show
Series [FFmpeg-devel,01/12] avcodec/h2645_parse: Remove H2645NAL.rbsp_buffer | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 11, 2021, 6:40 p.m. UTC
This puts it directly near the NALU type which is more natural
and furthermore reduces the size of the structure because it
can be placed in padding (on 64-bit systems).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/h2645_parse.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/h2645_parse.h b/libavcodec/h2645_parse.h
index 3a13ba248a..787ce971ee 100644
--- a/libavcodec/h2645_parse.h
+++ b/libavcodec/h2645_parse.h
@@ -51,6 +51,11 @@  typedef struct H2645NAL {
      */
     int type;
 
+    /**
+     * H.264 only, nal_ref_idc
+     */
+    int ref_idc;
+
     /**
      * HEVC only, nuh_temporal_id_plus_1 - 1
      */
@@ -64,10 +69,6 @@  typedef struct H2645NAL {
     int skipped_bytes;
     int skipped_bytes_pos_size;
     int *skipped_bytes_pos;
-    /**
-     * H.264 only, nal_ref_idc
-     */
-    int ref_idc;
 } H2645NAL;
 
 typedef struct H2645RBSP {