summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_h265.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2020-07-27 17:32:17 +0100
committerMark Thompson <sw@jkqxz.net>2020-09-02 00:00:50 +0100
commit1fe77d4a637c4033180a35b6ebf13b5a4707d2a4 (patch)
treed8afba5345efd74aecfab760e08c483aed10cd7b /libavcodec/cbs_h265.h
parent0271098e6c9ff8f2a97d65087e424f6d547e53f9 (diff)
cbs: Ensure that reference fields always follow the associated pointer
Having these together allows us to find both pointers given the address of only one of them.
Diffstat (limited to 'libavcodec/cbs_h265.h')
-rw-r--r--libavcodec/cbs_h265.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/cbs_h265.h b/libavcodec/cbs_h265.h
index 73897f77a4..15b22bbfd4 100644
--- a/libavcodec/cbs_h265.h
+++ b/libavcodec/cbs_h265.h
@@ -183,9 +183,9 @@ typedef struct H265RawVUI {
} H265RawVUI;
typedef struct H265RawExtensionData {
- uint8_t *data;
- size_t bit_length;
+ uint8_t *data;
AVBufferRef *data_ref;
+ size_t bit_length;
} H265RawExtensionData;
typedef struct H265RawVPS {
@@ -541,10 +541,10 @@ typedef struct H265RawSliceHeader {
typedef struct H265RawSlice {
H265RawSliceHeader header;
- uint8_t *data;
- size_t data_size;
- int data_bit_start;
+ uint8_t *data;
AVBufferRef *data_ref;
+ size_t data_size;
+ int data_bit_start;
} H265RawSlice;
@@ -600,15 +600,15 @@ typedef struct H265RawSEIUserDataRegistered {
uint8_t itu_t_t35_country_code;
uint8_t itu_t_t35_country_code_extension_byte;
uint8_t *data;
- size_t data_length;
AVBufferRef *data_ref;
+ size_t data_length;
} H265RawSEIUserDataRegistered;
typedef struct H265RawSEIUserDataUnregistered {
uint8_t uuid_iso_iec_11578[16];
uint8_t *data;
- size_t data_length;
AVBufferRef *data_ref;
+ size_t data_length;
} H265RawSEIUserDataUnregistered;
typedef struct H265RawSEIRecoveryPoint {
@@ -710,9 +710,9 @@ typedef struct H265RawSEIPayload {
alternative_transfer_characteristics;
H265RawSEIAlphaChannelInfo alpha_channel_info;
struct {
- uint8_t *data;
- size_t data_length;
+ uint8_t *data;
AVBufferRef *data_ref;
+ size_t data_length;
} other;
} payload;
H265RawExtensionData extension_data;