MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / add_metadata_from_side_data

Function add_metadata_from_side_data

libavcodec/decode.c:1519–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1517}
1518
1519static int add_metadata_from_side_data(const AVPacket *avpkt, AVFrame *frame)
1520{
1521 size_t size;
1522 const uint8_t *side_metadata;
1523
1524 AVDictionary **frame_md = &frame->metadata;
1525
1526 side_metadata = av_packet_get_side_data(avpkt,
1527 AV_PKT_DATA_STRINGS_METADATA, &size);
1528 return av_packet_unpack_dictionary(side_metadata, size, frame_md);
1529}
1530
1531int ff_decode_frame_props_from_pkt(const AVCodecContext *avctx,
1532 AVFrame *frame, const AVPacket *pkt)

Callers 1

Calls 2

av_packet_get_side_dataFunction · 0.85

Tested by

no test coverage detected