[FFmpeg-devel] [PATCH v2] examples: Add check and replace av_free() to avoid potential memory errors
Nicolas George
george at nsup.org
Wed Aug 6 17:52:24 EEST 2025
Jiasheng Jiang (HE12025-08-06):
> Add check for the return value of av_packet_alloc() to avoid potential NULL pointer dereference.
> Moreover, replace redundant av_free() with fprintf().
>
> Fixes: 9a38184a14 ("examples/decode_audio: allocate the packet dynamically")
This one looks good to me, thanks.
> Fixes: f5df897c4b ("examples/avcodec: split audio decoding into a separate example")
???
Regards,
--
Nicolas George
More information about the ffmpeg-devel
mailing list