[FFmpeg-cvslog] avcodec/utils: document allocation requirement of extradata

Timo Rothenpieler git at videolan.org
Sat Aug 25 19:31:32 EEST 2018


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Fri Aug 24 19:57:42 2018 +0200| [0c71c6d66f9ae8265158181e5b1cbc5c63525fde] | committer: Timo Rothenpieler

avcodec/utils: document allocation requirement of extradata

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0c71c6d66f9ae8265158181e5b1cbc5c63525fde
---

 libavcodec/avcodec.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 2a4be2ca4f..86a658a233 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1617,6 +1617,7 @@ typedef struct AVCodecContext {
      * The allocated memory should be AV_INPUT_BUFFER_PADDING_SIZE bytes larger
      * than extradata_size to avoid problems if it is read with the bitstream reader.
      * The bytewise contents of extradata must not depend on the architecture or CPU endianness.
+     * Must be allocated with the av_malloc() family of functions.
      * - encoding: Set/allocated/freed by libavcodec.
      * - decoding: Set/allocated/freed by user.
      */



More information about the ffmpeg-cvslog mailing list