aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-13 01:10:40 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-17 00:09:08 +0200
commit7d91f9271ee336da93b6871bf3306348ac1595a7 (patch)
tree9d729fb3d135e266fb6a4b8d438d6321e556d256 /libavcodec/pthread.c
parent0b45ac571713cc8fda7aa5381c68ad671d21504b (diff)
downloadffmpeg-7d91f9271ee336da93b6871bf3306348ac1595a7.tar.gz
avcodec/sonic: Fix leaks upon allocation errors
The Sonic decoder and encoders allocate several buffers in their init function and return immediately if one of these allocations fails; this will lead to leaks if there was an earlier successfull allocation. Fix this by setting the FF_CODEC_CAP_INIT_CLEANUP flag. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/pthread.c')
0 files changed, 0 insertions, 0 deletions