diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-03 23:43:01 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:59 +0100 |
commit | 2eb76188d03767eb782918fcd6c93a82429ddad0 (patch) | |
tree | fb96fbcf7370be19c42c6a2f1d9326a14c5e158c /libavcodec/dirac.c | |
parent | 25a5fddbb7f892b1c1af2c025945d7a858fc36fa (diff) | |
download | ffmpeg-2eb76188d03767eb782918fcd6c93a82429ddad0.tar.gz |
avcodec/mss4: Fix memleaks upon allocation error
During init the mts2 decoder allocates several VLCs and then several
buffers in a loop; if one of the latter allocations fails, only the VLCs
are freed, not any buffers that might already have been successfully
allocated. This commit fixes this by setting the
FF_CODEC_CAP_INIT_CLEANUP flag.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 4b4c7d6e1a700ef6b784b2f0b093e200ed049c20)
Diffstat (limited to 'libavcodec/dirac.c')
0 files changed, 0 insertions, 0 deletions