[FFmpeg-devel] [PATCH] avcodec/setts_bsf: fix memleak
Zhao Zhili
quinkblack at foxmail.com
Fri Mar 18 04:54:42 EET 2022
---
libavcodec/setts_bsf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/setts_bsf.c b/libavcodec/setts_bsf.c
index 3c666b5061..fadf63bc54 100644
--- a/libavcodec/setts_bsf.c
+++ b/libavcodec/setts_bsf.c
@@ -244,6 +244,8 @@ static void setts_close(AVBSFContext *bsf)
s->pts_expr = NULL;
av_expr_free(s->dts_expr);
s->dts_expr = NULL;
+ av_expr_free(s->duration_expr);
+ s->duration_expr = NULL;
}
#define OFFSET(x) offsetof(SetTSContext, x)
--
2.31.1
More information about the ffmpeg-devel
mailing list