diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-11 15:35:03 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-16 02:37:25 +0100 |
commit | aba4a4f080b2c0aa96409f93f455f9870fabbe2d (patch) | |
tree | 7fcde236d0cc20933f79cf111098d39e017528d8 | |
parent | c22a9ece2e7d823507b81e7fe7789545f01e7c88 (diff) |
avcodec/h2645_parse: Move ref_idc further up in H2645NAL
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>
-rw-r--r-- | libavcodec/h2645_parse.h | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ -52,6 +52,11 @@ typedef struct H2645NAL { int type; /** + * H.264 only, nal_ref_idc + */ + int ref_idc; + + /** * HEVC only, nuh_temporal_id_plus_1 - 1 */ int temporal_id; @@ -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 { |