History

avdevice: use the buffer_size_t typedef where required

James Almer committed 5 years ago

Commit f7abb531 parent e07126f3 files · +4 −3Browse files

Unified · Split

3 files
  1. libavdevice/decklink_dec.cpp +1 −1
  2. libavdevice/decklink_enc.cpp +2 −1
  3. libavdevice/xcbgrab.c +1 −1
libavdevice/decklink_dec.cpp+1−1
@@ -1437,7 +1437,7 @@ int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt) · 1436 unmodified lines
1437 avpacket_queue_get(&ctx->queue, pkt, 1);1437 avpacket_queue_get(&ctx->queue, pkt, 1);
1438 1438
1439 if (ctx->tc_format && !(av_dict_get(ctx->video_st->metadata, "timecode", NULL, 0))) {1439 if (ctx->tc_format && !(av_dict_get(ctx->video_st->metadata, "timecode", NULL, 0))) {
1440 int size;1440 buffer_size_t size;
1441 const uint8_t *side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size);1441 const uint8_t *side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size);
1442 if (side_metadata) {1442 if (side_metadata) {
1443 if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0)1443 if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0)
libavdevice/decklink_enc.cpp+2−1
@@ -312,7 +312,8 @@ static void construct_cc(AVFormatContext *avctx, struct decklink_ctx *ctx, · 311 unmodified lines
312 uint16_t *cdp_words;312 uint16_t *cdp_words;
313 uint16_t len;313 uint16_t len;
314 uint8_t cc_count;314 uint8_t cc_count;
315 int size, ret, i;315 buffer_size_t size;
316 int ret, i;
316 317
317 const uint8_t *data = av_packet_get_side_data(pkt, AV_PKT_DATA_A53_CC, &size);318 const uint8_t *data = av_packet_get_side_data(pkt, AV_PKT_DATA_A53_CC, &size);
318 if (!data)319 if (!data)
libavdevice/xcbgrab.c+1−1
@@ -236,7 +236,7 @@ static void free_shm_buffer(void *opaque, uint8_t *data) · 235 unmodified lines
236 shmdt(data);236 shmdt(data);
237}237}
238 238
239static AVBufferRef *allocate_shm_buffer(void *opaque, int size)239static AVBufferRef *allocate_shm_buffer(void *opaque, buffer_size_t size)
240{240{
241 xcb_connection_t *conn = opaque;241 xcb_connection_t *conn = opaque;
242 xcb_shm_seg_t segment;242 xcb_shm_seg_t segment;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t