aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/packet.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-03-06 12:43:52 -0300
committerJames Almer <jamrial@gmail.com>2021-03-10 20:26:36 -0300
commitd79e0fe65c51491f9bf8a470bbe36fb09f3e1280 (patch)
treee362a2e54edb1782d876d9d108ac959396750319 /libavcodec/packet.h
parentdbd47b7990efb48dd2f8ab2d396a6aff2a98c250 (diff)
downloadffmpeg-d79e0fe65c51491f9bf8a470bbe36fb09f3e1280.tar.gz
avcodec/packet: change side data related public function and struct size types to size_t
av_packet_add_side_data() already defines size as a size_t, so this makes it consistent across all side data functions Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/packet.h')
-rw-r--r--libavcodec/packet.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index b9d4c9c2c8..3d9013d783 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -305,7 +305,11 @@ enum AVPacketSideDataType {
typedef struct AVPacketSideData {
uint8_t *data;
+#if FF_API_BUFFER_SIZE_T
int size;
+#else
+ size_t size;
+#endif
enum AVPacketSideDataType type;
} AVPacketSideData;
@@ -559,7 +563,11 @@ void av_free_packet(AVPacket *pkt);
* @return pointer to fresh allocated data or NULL otherwise
*/
uint8_t* av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
+#if FF_API_BUFFER_SIZE_T
int size);
+#else
+ size_t size);
+#endif
/**
* Wrap an existing array as a packet side data.
@@ -586,7 +594,11 @@ int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
* @return 0 on success, < 0 on failure
*/
int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
+#if FF_API_BUFFER_SIZE_T
int size);
+#else
+ size_t size);
+#endif
/**
* Get side information from packet.
@@ -598,7 +610,11 @@ int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
* @return pointer to data if present or NULL otherwise
*/
uint8_t* av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type,
+#if FF_API_BUFFER_SIZE_T
int *size);
+#else
+ size_t *size);
+#endif
#if FF_API_MERGE_SD_API
attribute_deprecated