aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-27 15:08:00 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-02 18:45:05 +0200
commitd789d72d30d8cb6c0a9b5b1140589da1eae44e1e (patch)
tree237e549224cfd414254b336739a1cd3f24fc7af3
parent9bf2b32da048732ad79e075dfefd40777e9f935a (diff)
downloadffmpeg-d789d72d30d8cb6c0a9b5b1140589da1eae44e1e.tar.gz
avcodec/proresenc_anatoliy: Fix memleak upon init error
A buffer may leak in case of YUVA444P10 with dimensions that are not both divisible by 16. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/proresenc_anatoliy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 588df5984c..a4197870ec 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -957,6 +957,7 @@ AVCodec ff_prores_aw_encoder = {
.capabilities = AV_CODEC_CAP_FRAME_THREADS,
.priv_class = &proresaw_enc_class,
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles),
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
AVCodec ff_prores_encoder = {
@@ -972,4 +973,5 @@ AVCodec ff_prores_encoder = {
.capabilities = AV_CODEC_CAP_FRAME_THREADS,
.priv_class = &prores_enc_class,
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles),
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};