|
|
@ -1437,7 +1437,7 @@ int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt) |
|
|
|
avpacket_queue_get(&ctx->queue, pkt, 1); |
|
|
|
avpacket_queue_get(&ctx->queue, pkt, 1); |
|
|
|
|
|
|
|
|
|
|
|
if (ctx->tc_format && !(av_dict_get(ctx->video_st->metadata, "timecode", NULL, 0))) { |
|
|
|
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); |
|
|
|
const uint8_t *side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size); |
|
|
|
if (side_metadata) { |
|
|
|
if (side_metadata) { |
|
|
|
if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0) |
|
|
|
if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0) |
|
|
|