]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: clarify the allocation requirements for intra_matrix and inter_matrix fields
authorJames Almer <jamrial@gmail.com>
Mon, 15 Jul 2019 14:38:36 +0000 (11:38 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 17 Jul 2019 20:56:15 +0000 (17:56 -0300)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/avcodec.h

index 2528bd89ab9da914525b23a1f4b4bbff5a379c2b..d234271c5b82d3264d4136c73a0b40a5aac699ab 100644 (file)
@@ -2057,15 +2057,19 @@ typedef struct AVCodecContext {
 
     /**
      * custom intra quantization matrix
-     * - encoding: Set by user, can be NULL.
-     * - decoding: Set by libavcodec.
+     * Must be allocated with the av_malloc() family of functions, and will be freed in
+     * avcodec_free_context().
+     * - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
+     * - decoding: Set/allocated/freed by libavcodec.
      */
     uint16_t *intra_matrix;
 
     /**
      * custom inter quantization matrix
-     * - encoding: Set by user, can be NULL.
-     * - decoding: Set by libavcodec.
+     * Must be allocated with the av_malloc() family of functions, and will be freed in
+     * avcodec_free_context().
+     * - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
+     * - decoding: Set/allocated/freed by libavcodec.
      */
     uint16_t *inter_matrix;