diff options
author | Andreas Rheinhardt <[email protected]> | 2020-09-15 01:29:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2020-09-19 18:47:39 +0200 |
commit | 3d83de4187e9bb07af2ea8a0ec071094fca7a500 (patch) | |
tree | eeae2fb4320ba80842fb9a2d6e1a0228e756e2fc /tests/checkasm/sw_scale.c | |
parent | 3507ab07ecafb107574161bd7a2225616329816d (diff) |
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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'tests/checkasm/sw_scale.c')
0 files changed, 0 insertions, 0 deletions