[FFmpeg-cvslog] avcodec: add ff_frame_get_metadatap()
Michael Niedermayer
git at videolan.org
Fri Mar 1 23:48:38 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 1 22:26:12 2013 +0100| [bf90ef0314e298f7ecfa133685e938e694dd3cad] | committer: Michael Niedermayer
avcodec: add ff_frame_get_metadatap()
This is needed for av_dict_*
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf90ef0314e298f7ecfa133685e938e694dd3cad
---
libavcodec/internal.h | 2 ++
libavcodec/utils.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 3402cc2..14f7918 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -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 */
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e364b7e..69aaf4d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list