aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/audio_fifo.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-12 23:52:36 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:57 +0100
commit0dd79193a773d867b624095d555ebf01c2529ebe (patch)
tree727b7bc2c3cbde87c9ffdf9b85a6901c75207246 /libavutil/audio_fifo.c
parentce629ee2164ce316feb1ceb96868fa447d42ce88 (diff)
downloadffmpeg-0dd79193a773d867b624095d555ebf01c2529ebe.tar.gz
avcodec/qtrleenc: Fix memleak upon allocation failure
The qtrle encoder allocates several buffers and an AVFrame in its init function. If one of these allocations fails, but others succeed, the successfully allocated objects leak. This is fixed by setting the FF_CODEC_CAP_INIT_CLEANUP flag. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 2a71cbeb019fabd70f04ca9d2ec5d0bff3b3e3d2)
Diffstat (limited to 'libavutil/audio_fifo.c')
0 files changed, 0 insertions, 0 deletions