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 <[email protected]> --- 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 _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
