diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-15 01:29:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-19 18:47:39 +0200 |
commit | 3d83de4187e9bb07af2ea8a0ec071094fca7a500 (patch) | |
tree | eeae2fb4320ba80842fb9a2d6e1a0228e756e2fc /libavfilter/vf_procamp_vaapi.c | |
parent | 3507ab07ecafb107574161bd7a2225616329816d (diff) | |
download | ffmpeg-3d83de4187e9bb07af2ea8a0ec071094fca7a500.tar.gz |
avcodec/j2kenc: Fix leaks on init failure
The JPEG2000 encoder did not clean up after itself on error.
This commit fixes this by modifying the cleanup function to be able to
handle only partially allocated structures and by setting the
FF_CODEC_CAP_INIT_CLEANUP flag.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/vf_procamp_vaapi.c')
0 files changed, 0 insertions, 0 deletions