aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-03-06 13:30:00 -0300
committerJames Almer <jamrial@gmail.com>2021-03-10 20:26:36 -0300
commitf7abb53cb427515faac582f114ab97cbbd590280 (patch)
treef8be0e77c2de121623f8fcee6d15e4348e200236 /libavdevice
parente07126f54a11cbfc23288f2e15508872da17f81b (diff)
downloadffmpeg-f7abb53cb427515faac582f114ab97cbbd590280.tar.gz
avdevice: use the buffer_size_t typedef where required
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/decklink_dec.cpp2
-rw-r--r--libavdevice/decklink_enc.cpp3
-rw-r--r--libavdevice/xcbgrab.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 4f8103e614..6c0a338fca 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -1437,7 +1437,7 @@ int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)
avpacket_queue_get(&ctx->queue, pkt, 1);
if (ctx->tc_format && !(av_dict_get(ctx->video_st->metadata, "timecode", NULL, 0))) {
- int size;
+ buffer_size_t size;
const uint8_t *side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size);
if (side_metadata) {
if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0)
diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index 6c73968d5f..df901b0d68 100644
--- a/libavdevice/decklink_enc.cpp
+++ b/libavdevice/decklink_enc.cpp
@@ -312,7 +312,8 @@ static void construct_cc(AVFormatContext *avctx, struct decklink_ctx *ctx,
uint16_t *cdp_words;
uint16_t len;
uint8_t cc_count;
- int size, ret, i;
+ buffer_size_t size;
+ int ret, i;
const uint8_t *data = av_packet_get_side_data(pkt, AV_PKT_DATA_A53_CC, &size);
if (!data)
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index 9604a5aaf2..f9ea5a56b2 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -236,7 +236,7 @@ static void free_shm_buffer(void *opaque, uint8_t *data)
shmdt(data);
}
-static AVBufferRef *allocate_shm_buffer(void *opaque, int size)
+static AVBufferRef *allocate_shm_buffer(void *opaque, buffer_size_t size)
{
xcb_connection_t *conn = opaque;
xcb_shm_seg_t segment;