aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tests/avpacket.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/tests/avpacket: Add av_packet_free() to avoid memory leakJiasheng Jiang3 days1-0/+3
| | | | | | | | Add av_packet_free() to free avpkt_clone and avpkt in the error paths to avoid potential memory leak. Fixes: da3c69a5a9 ("Added test for libavcodec/avpacket.c") Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/tests/avpacket: Add av_free() to avoid memory leakJiasheng Jiang3 days1-0/+1
| | | | | | | | Add av_free() to free extra_data if av_packet_add_side_data() fails. Fixes: da3c69a5a9 ("Added test for libavcodec/avpacket.c") Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* all: fix typos found by codespellTimo Rothenpieler3 days1-1/+1
|
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-311-0/+1
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/tests/avpacket: use av_packet_alloc() to allocate packetsJames Almer2021-03-171-7/+12
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Added test for libavcodec/avpacket.cThomas Turner2016-12-061-0/+128
Signed-off-by: Thomas Turner <thomastdt@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>