Browse Source

avdevice: use the buffer_size_t typedef where required

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.4
James Almer 5 years ago
parent
commit
f7abb53cb4
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      libavdevice/decklink_dec.cpp
  2. +2
    -1
      libavdevice/decklink_enc.cpp
  3. +1
    -1
      libavdevice/xcbgrab.c

+ 1
- 1
libavdevice/decklink_dec.cpp View File

@@ -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)


+ 2
- 1
libavdevice/decklink_enc.cpp View File

@@ -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)


+ 1
- 1
libavdevice/xcbgrab.c View File

@@ -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;


Loading…
Cancel
Save