[FFmpeg-devel] [PATCH 16/21] avformat/aqtitledec: Fix memleak when queueing subtitle fails
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Sun Mar 22 05:47:51 EET 2020
The subtitle queue would leak in this scenario. This has been fixed by
adding the FF_INPUTFORMAT_HEADER_CLEANUP flag so that aqt_read_close() is
called if reading the header fails.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavformat/aqtitledec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/aqtitledec.c b/libavformat/aqtitledec.c
index 8cc82a8f39..191a31b2f1 100644
--- a/libavformat/aqtitledec.c
+++ b/libavformat/aqtitledec.c
@@ -145,4 +145,5 @@ AVInputFormat ff_aqtitle_demuxer = {
.read_close = aqt_read_close,
.extensions = "aqt",
.priv_class = &aqt_class,
+ .flags_internal = FF_INPUTFORMAT_HEADER_CLEANUP,
};
--
2.20.1
More information about the ffmpeg-devel
mailing list