[FFmpeg-devel] [PATCH] lavc: add metadata to AVFrame

Stefano Sabatini stefasab at gmail.com
Wed Jul 11 15:58:15 CEST 2012


In data Wednesday 2012-07-11 14:11:37 +0200, Nicolas George ha scritto:
> Le quartidi 24 messidor, an CCXX, Stefano Sabatini a écrit :
> > +    /**
> > +     * Metadata.
> > +     * - encoding: Set by user.
> > +     * - decoding: Set by libavcodec.
> > +     */
> > +    AVDictionary *metadata;
> 
> Who is responsible for freeing it?

Metadata is stored in the decoder context, and will be freed by the
decoder. User code is supposed to copy data from AVFrame locally, in
case it needs to use it later (e.g. after calling again
avcodec_decode_*).
-- 
FFmpeg = Faithful and Fierce Mournful Puristic Embarassing Gorilla


More information about the ffmpeg-devel mailing list