diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-19 01:31:31 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-19 02:25:02 +0100 |
commit | edcbb3e1b91b53b6fcd641a7f40bd707c090e0a7 (patch) | |
tree | 63805b5c65bac739abf559da0b86715cae313c23 /CONTRIBUTING.md | |
parent | aff1d373b1d66064d4c07a6a83c86a0044eaad52 (diff) | |
download | ffmpeg-edcbb3e1b91b53b6fcd641a7f40bd707c090e0a7.tar.gz |
avformat/tests/fifo_muxer: Fix memleak on error, fix API violation
The test program for the FIFO muxer allocates a buffer without padding
and wraps it into a packet via av_packet_from_data(). This is an API
violation. Furthermore, said buffer leaks in case av_packet_from_data()
fails. Fix both of these issues by using av_new_packet() instead.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions