1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/flacenc: Fix memleak upon init error

An AVMD5 struct would leak if an error happened after its allocation.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 56bd071e54)
This commit is contained in:
Andreas Rheinhardt 2020-11-29 22:28:37 +01:00 committed by Andreas Rheinhardt
parent affb55d4b4
commit 236ddfbe1c

View File

@ -1513,4 +1513,5 @@ AVCodec ff_flac_encoder = {
AV_SAMPLE_FMT_S32,
AV_SAMPLE_FMT_NONE },
.priv_class = &flac_encoder_class,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};