avutil/buffer: Switch AVBuffer API to size_t
Announced in 14040a1d91.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
985c0dac67
commit
ef6a9e5e31
@@ -936,7 +936,7 @@ HRESULT decklink_input_callback::VideoInputFrameArrived(
|
||||
}
|
||||
|
||||
if (av_dict_set(&metadata_dict, "timecode", tc, 0) >= 0) {
|
||||
buffer_size_t metadata_len;
|
||||
size_t metadata_len;
|
||||
packed_metadata = av_packet_pack_dictionary(metadata_dict, &metadata_len);
|
||||
av_dict_free(&metadata_dict);
|
||||
if (packed_metadata) {
|
||||
@@ -1435,7 +1435,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))) {
|
||||
buffer_size_t size;
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user