aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-23 04:09:56 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:59 +0100
commit6d3a064251c6d1d8e9491e916c8cbac1c16ddb2f (patch)
treec7aa4e0cbfa1d8dd4672a7c3a68b3687847622cc
parent92d0a598ad8d86b1daf2cf57cb2d2f8456cc96cd (diff)
downloadffmpeg-6d3a064251c6d1d8e9491e916c8cbac1c16ddb2f.tar.gz
avcodec/wavpack: Fix leak on init failure
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit fd5d66af744462a97237fa0474e77924c71729ec)
-rw-r--r--libavcodec/wavpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index f77548e5a5..fc72300511 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -1713,5 +1713,5 @@ AVCodec ff_wavpack_decoder = {
.update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context),
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS |
AV_CODEC_CAP_SLICE_THREADS,
- .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_ALLOCATE_PROGRESS,
};