aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/avio_reading.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>2021-02-27 07:20:58 +0100
commitc937f21e26072e870d20b4ddfa30fee96c7d1138 (patch)
tree288c817d31ae6af96e626be229f5a85aab598a99 /doc/examples/avio_reading.c
parentf8747758bbcde83005dbc3021cd057fa7e2e568e (diff)
downloadffmpeg-c937f21e26072e870d20b4ddfa30fee96c7d1138.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> (cherry picked from commit 3d83de4187e9bb07af2ea8a0ec071094fca7a500)
Diffstat (limited to 'doc/examples/avio_reading.c')
0 files changed, 0 insertions, 0 deletions