Commit 056865a1 authored by James Almer's avatar James Almer

avcodec: clarify the allocation requirements for intra_matrix and inter_matrix fields

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 806ac7da
...@@ -2057,15 +2057,19 @@ typedef struct AVCodecContext { ...@@ -2057,15 +2057,19 @@ typedef struct AVCodecContext {
/** /**
* custom intra quantization matrix * custom intra quantization matrix
* - encoding: Set by user, can be NULL. * Must be allocated with the av_malloc() family of functions, and will be freed in
* - decoding: Set by libavcodec. * avcodec_free_context().
* - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
* - decoding: Set/allocated/freed by libavcodec.
*/ */
uint16_t *intra_matrix; uint16_t *intra_matrix;
/** /**
* custom inter quantization matrix * custom inter quantization matrix
* - encoding: Set by user, can be NULL. * Must be allocated with the av_malloc() family of functions, and will be freed in
* - decoding: Set by libavcodec. * avcodec_free_context().
* - encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
* - decoding: Set/allocated/freed by libavcodec.
*/ */
uint16_t *inter_matrix; uint16_t *inter_matrix;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment