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:
Michael Niedermayer 2013-03-01 22:26:12 +01:00
parent 5b802cf567
commit bf90ef0314
2 changed files with 4 additions and 0 deletions

View 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 */

View 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)