aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_entropy.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-15 01:29:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-19 18:47:39 +0200
commit3d83de4187e9bb07af2ea8a0ec071094fca7a500 (patch)
treeeeae2fb4320ba80842fb9a2d6e1a0228e756e2fc /libavfilter/vf_entropy.c
parent3507ab07ecafb107574161bd7a2225616329816d (diff)
downloadffmpeg-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_entropy.c')
0 files changed, 0 insertions, 0 deletions