mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec: add ff_frame_get_metadatap()
This is needed for av_dict_* Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5b802cf567
commit
bf90ef0314
|
@ -213,4 +213,6 @@ int ff_codec_close_recursive(AVCodecContext *avctx);
|
||||||
*/
|
*/
|
||||||
int avpriv_bprint_to_extradata(AVCodecContext *avctx, struct AVBPrint *buf);
|
int avpriv_bprint_to_extradata(AVCodecContext *avctx, struct AVBPrint *buf);
|
||||||
|
|
||||||
|
AVDictionary **ff_frame_get_metadatap(AVFrame *frame);
|
||||||
|
|
||||||
#endif /* AVCODEC_INTERNAL_H */
|
#endif /* AVCODEC_INTERNAL_H */
|
||||||
|
|
|
@ -767,6 +767,8 @@ MAKE_ACCESSORS(AVFrame, frame, AVDictionary *, metadata)
|
||||||
MAKE_ACCESSORS(AVFrame, frame, int, decode_error_flags)
|
MAKE_ACCESSORS(AVFrame, frame, int, decode_error_flags)
|
||||||
MAKE_ACCESSORS(AVFrame, frame, int, pkt_size)
|
MAKE_ACCESSORS(AVFrame, frame, int, pkt_size)
|
||||||
|
|
||||||
|
AVDictionary **ff_frame_get_metadatap(AVFrame *frame) {return &frame->metadata;};
|
||||||
|
|
||||||
MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase)
|
MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase)
|
||||||
MAKE_ACCESSORS(AVCodecContext, codec, const AVCodecDescriptor *, codec_descriptor)
|
MAKE_ACCESSORS(AVCodecContext, codec, const AVCodecDescriptor *, codec_descriptor)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue