mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/utils: get rid of add_metadata_from_side_data forward declaration
Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9476c4c67e
commit
859731d642
@ -739,7 +739,17 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
}
|
||||
|
||||
static int add_metadata_from_side_data(AVPacket *avpkt, AVFrame *frame);
|
||||
static int add_metadata_from_side_data(AVPacket *avpkt, AVFrame *frame)
|
||||
{
|
||||
int size;
|
||||
const uint8_t *side_metadata;
|
||||
|
||||
AVDictionary **frame_md = avpriv_frame_get_metadatap(frame);
|
||||
|
||||
side_metadata = av_packet_get_side_data(avpkt,
|
||||
AV_PKT_DATA_STRINGS_METADATA, &size);
|
||||
return av_packet_unpack_dictionary(side_metadata, size, frame_md);
|
||||
}
|
||||
|
||||
int ff_init_buffer_info(AVCodecContext *avctx, AVFrame *frame)
|
||||
{
|
||||
@ -2299,18 +2309,6 @@ fail:
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
static int add_metadata_from_side_data(AVPacket *avpkt, AVFrame *frame)
|
||||
{
|
||||
int size;
|
||||
const uint8_t *side_metadata;
|
||||
|
||||
AVDictionary **frame_md = avpriv_frame_get_metadatap(frame);
|
||||
|
||||
side_metadata = av_packet_get_side_data(avpkt,
|
||||
AV_PKT_DATA_STRINGS_METADATA, &size);
|
||||
return av_packet_unpack_dictionary(side_metadata, size, frame_md);
|
||||
}
|
||||
|
||||
static int unrefcount_frame(AVCodecInternal *avci, AVFrame *frame)
|
||||
{
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user