diff mbox series

[FFmpeg-devel] avcodec/codecpar: mention how to allocate coded_side_data

Message ID 20231113162901.4501-1-jamrial@gmail.com
State Accepted
Commit b360c917523ea4a896285160db4b20c695145fc2
Headers show
Series [FFmpeg-devel] avcodec/codecpar: mention how to allocate coded_side_data | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer Nov. 13, 2023, 4:29 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/codec_par.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

James Almer Nov. 14, 2023, 3:37 p.m. UTC | #1
On 11/13/2023 1:29 PM, James Almer wrote:
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   libavcodec/codec_par.h | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/libavcodec/codec_par.h b/libavcodec/codec_par.h
> index 64882a9726..f42dd3b1d5 100644
> --- a/libavcodec/codec_par.h
> +++ b/libavcodec/codec_par.h
> @@ -219,6 +219,9 @@ typedef struct AVCodecParameters {
>   
>       /**
>        * Additional data associated with the entire stream.
> +     *
> +     * Should be allocated with av_packet_side_data_new() or
> +     * av_packet_side_data_add(), and will be freed by avcodec_parameters_free().
>        */
>       AVPacketSideData *coded_side_data;

Will apply.
diff mbox series

Patch

diff --git a/libavcodec/codec_par.h b/libavcodec/codec_par.h
index 64882a9726..f42dd3b1d5 100644
--- a/libavcodec/codec_par.h
+++ b/libavcodec/codec_par.h
@@ -219,6 +219,9 @@  typedef struct AVCodecParameters {
 
     /**
      * Additional data associated with the entire stream.
+     *
+     * Should be allocated with av_packet_side_data_new() or
+     * av_packet_side_data_add(), and will be freed by avcodec_parameters_free().
      */
     AVPacketSideData *coded_side_data;