[FFmpeg-devel] [PATCH v2] avcodec/mpegvideo_enc: Add check for av_packet_new_side_data()

Anton Khirnov anton at khirnov.net
Mon Jul 1 13:59:51 EEST 2024


Quoting Jiasheng Jiang (2024-06-10 16:18:11)
> Add check for av_packet_new_side_data() to avoid null pointer
> dereference if allocation fails.
> 
> Fixes: bdc1220eeb ("h263enc: Add an option for outputting info about MBs as side data")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at outlook.com>
> ---
> Changelog:
> 
> v1 -> v2: Wrap lines in the body of the commit message.
> ---
>  libavcodec/mpegvideo_enc.c | 2 ++
>  1 file changed, 2 insertions(+)

Looks ok, will push soonish.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list