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
14371437 avpacket_queue_get(&ctx->queue, pkt, 1);
14381438
14391439 if (ctx->tc_format && !(av_dict_get(ctx->video_st->metadata, "timecode", NULL, 0))) {
1440− int size;
1440+ buffer_size_t size;
14411441 const uint8_t *side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size);
14421442 if (side_metadata) {
14431443 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
312312 uint16_t *cdp_words;
313313 uint16_t len;
314314 uint8_t cc_count;
315− int size, ret, i;
315+ buffer_size_t size;
316+ int ret, i;
316317
317318 const uint8_t *data = av_packet_get_side_data(pkt, AV_PKT_DATA_A53_CC, &size);
318319 if (!data)
libavdevice/xcbgrab.c+1−1
@@ -236,7 +236,7 @@ static void free_shm_buffer(void *opaque, uint8_t *data) · 235 unmodified lines
236236 shmdt(data);
237237 }
238238
239−static AVBufferRef *allocate_shm_buffer(void *opaque, int size)
239+static AVBufferRef *allocate_shm_buffer(void *opaque, buffer_size_t size)
240240 {
241241 xcb_connection_t *conn = opaque;
242242 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