1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00
Files
FFmpeg/doc
Jiasheng Jiang 63c4658e62 examples: Add check and replace av_free() to avoid potential memory errors
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")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c64cff64a2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2025-08-14 02:55:46 +02:00
..
2023-03-01 21:59:10 +01:00
2025-08-04 18:38:07 +02:00
2019-02-11 10:13:31 +05:30
2023-09-02 21:32:37 +02:00
2019-02-10 16:46:56 +01:00
2023-11-10 02:06:20 +01:00
2020-09-08 14:29:19 +02:00
2021-06-18 18:58:25 +02:00