Files
FFmpeg/doc
Jiasheng Jiang 63c07d87a9 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-13 22:05:50 +02:00
..
2023-03-16 14:48:40 +01:00
2025-08-04 17:04:49 +02:00
2019-02-11 10:13:31 +05:30
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2022-07-14 15:49:10 +05:30
2022-06-13 22:42:55 +02:00
2018-01-06 18:31:37 +00:00
2017-02-03 15:03:44 +01:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2018-01-06 18:31:37 +00:00
2019-02-10 16:46:56 +01:00
2016-10-03 00:16:27 +01:00
2023-11-09 00:16:18 +01:00
2020-09-08 14:29:19 +02:00
2021-06-18 18:58:25 +02:00