summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-01 22:26:12 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-01 22:40:50 +0100
commitbf90ef0314e298f7ecfa133685e938e694dd3cad (patch)
tree539a154a26d35ced82e061a3d6daa618386ea755 /libavcodec
parent5b802cf567a0ee7a2990e08d08f8aa0abffbb7d2 (diff)
avcodec: add ff_frame_get_metadatap()
This is needed for av_dict_* Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/internal.h2
-rw-r--r--libavcodec/utils.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 3402cc2547..14f7918dbd 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 e364b7e991..69aaf4df8b 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)