1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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>
This commit is contained in:
Andreas Rheinhardt 2020-11-27 15:08:00 +01:00 committed by Andreas Rheinhardt
parent 9bf2b32da0
commit d789d72d30

View File

@ -957,6 +957,7 @@ AVCodec ff_prores_aw_encoder = {
.capabilities = AV_CODEC_CAP_FRAME_THREADS, .capabilities = AV_CODEC_CAP_FRAME_THREADS,
.priv_class = &proresaw_enc_class, .priv_class = &proresaw_enc_class,
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), .profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles),
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}; };
AVCodec ff_prores_encoder = { AVCodec ff_prores_encoder = {
@ -972,4 +973,5 @@ AVCodec ff_prores_encoder = {
.capabilities = AV_CODEC_CAP_FRAME_THREADS, .capabilities = AV_CODEC_CAP_FRAME_THREADS,
.priv_class = &prores_enc_class, .priv_class = &prores_enc_class,
.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), .profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles),
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}; };