diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-03-13 17:51:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-13 20:16:48 +0100 |
commit | 84bf1cbef9111341e2030aa91bc8279d08e8b345 (patch) | |
tree | abf3c69680bd6214916e9ceedd7f70f39511ac6c /libavcodec/avcodec.h | |
parent | de3e0ab35f5e14870e8d14a7e796172b36aba101 (diff) | |
download | ffmpeg-84bf1cbef9111341e2030aa91bc8279d08e8b345.tar.gz |
avcodec: remove AVCodecContext->metadata
This field was only ever set and freed from avcodec, and not otherwise
used. However, because frames are refcounted now, avcodec cannot make any
assumptions about the lifetime of the frame metadata, which can result in
double-frees or leaked memory.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7145a46014..a46a8d6cfd 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2793,13 +2793,6 @@ typedef struct AVCodecContext { int64_t pts_correction_last_dts; /// DTS of the last frame /** - * Current frame metadata. - * - decoding: maintained and used by libavcodec, not intended to be used by user apps - * - encoding: unused - */ - AVDictionary *metadata; - - /** * Character encoding of the input subtitles file. * - decoding: set by user * - encoding: unused |