aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/lavf/dfpwm
diff options
context:
space:
mode:
authorJiasheng Jiang <jiashengjiangcool@gmail.com>2025-08-06 14:54:22 +0000
committerMichael Niedermayer <michael@niedermayer.cc>2025-08-07 03:07:45 +0200
commitc64cff64a22a59c0c02281ee9fd9d89963d14d16 (patch)
tree3ef93a63e6b37f2968b1c78a71517a95d9c62f56 /tests/ref/lavf/dfpwm
parent446cfbfb7446208bd1592bbc0ac18ac744543563 (diff)
downloadffmpeg-master.tar.gz
examples: Add check and replace av_free() to avoid potential memory errorsHEADmaster
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>
Diffstat (limited to 'tests/ref/lavf/dfpwm')
0 files changed, 0 insertions, 0 deletions