diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-13 01:10:40 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | 2e05113b927f09c3fa872028b6a588ac040c39d6 (patch) | |
tree | aa3952b6ea8a90998a0458f11f5868b9b56365bd /doc/examples/filtering_audio.c | |
parent | 0dd79193a773d867b624095d555ebf01c2529ebe (diff) | |
download | ffmpeg-2e05113b927f09c3fa872028b6a588ac040c39d6.tar.gz |
avcodec/sonic: Fix leaks upon allocation errors
The Sonic decoder and encoders allocate several buffers in their init
function and return immediately if one of these allocations fails; this
will lead to leaks if there was an earlier successfull allocation. Fix
this by setting the FF_CODEC_CAP_INIT_CLEANUP flag.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 7d91f9271ee336da93b6871bf3306348ac1595a7)
Diffstat (limited to 'doc/examples/filtering_audio.c')
0 files changed, 0 insertions, 0 deletions