Files
FFmpeg/doc
Jiasheng Jiang 19856e140e 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-09-08 02:13:23 +02:00
..
2024-09-24 17:05:28 +02:00
2023-03-01 21:59:10 +01:00
2025-03-02 16:29:39 +01:00
2024-09-04 12:14:57 +08:00
2024-03-19 04:10:48 +01:00
2024-03-18 17:59:19 +01:00
2024-02-28 10:28:49 +01:00