[FFmpeg-cvslog] avcodec/proresenc_anatoliy: Fix memleak upon init error

Andreas Rheinhardt git at videolan.org
Sat Apr 3 01:19:11 EEST 2021


ffmpeg | branch: release/4.4 | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Nov 27 15:08:00 2020 +0100| [affb55d4b42a61b8a92a549fa805434874bc69b5] | committer: Andreas Rheinhardt

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 at gmail.com>
(cherry picked from commit d789d72d30d8cb6c0a9b5b1140589da1eae44e1e)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=affb55d4b42a61b8a92a549fa805434874bc69b5
---

 libavcodec/proresenc_anatoliy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index c34e55f873..2d03f4d8c4 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,
 };



More information about the ffmpeg-cvslog mailing list