Browse Source

avcodec: add ff_frame_get_metadatap()

This is needed for av_dict_*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 13 years ago
parent
commit
bf90ef0314
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      libavcodec/internal.h
  2. +2
    -0
      libavcodec/utils.c

+ 2
- 0
libavcodec/internal.h 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 */

+ 2
- 0
libavcodec/utils.c 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)



Loading…
Cancel
Save