OSDN Git Service

avcodec: add ff_frame_get_metadatap()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 21:26:12 +0000 (22:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 21:40:50 +0000 (22:40 +0100)
This is needed for av_dict_*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/internal.h
libavcodec/utils.c

index 3402cc2..14f7918 100644 (file)
@@ -213,4 +213,6 @@ int ff_codec_close_recursive(AVCodecContext *avctx);
  */
 int avpriv_bprint_to_extradata(AVCodecContext *avctx, struct AVBPrint *buf);
 
+AVDictionary **ff_frame_get_metadatap(AVFrame *frame);
+
 #endif /* AVCODEC_INTERNAL_H */
index e364b7e..69aaf4d 100644 (file)
@@ -767,6 +767,8 @@ MAKE_ACCESSORS(AVFrame, frame, AVDictionary *, metadata)
 MAKE_ACCESSORS(AVFrame, frame, int,     decode_error_flags)
 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, const AVCodecDescriptor *, codec_descriptor)