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