1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/setts_bsf: fix memleak

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Zhao Zhili
2022-03-18 10:54:42 +08:00
committed by James Almer
parent 31916d3d9f
commit 6f210ebae2

View File

@@ -244,6 +244,8 @@ static void setts_close(AVBSFContext *bsf)
s->pts_expr = NULL; s->pts_expr = NULL;
av_expr_free(s->dts_expr); av_expr_free(s->dts_expr);
s->dts_expr = NULL; s->dts_expr = NULL;
av_expr_free(s->duration_expr);
s->duration_expr = NULL;
} }
#define OFFSET(x) offsetof(SetTSContext, x) #define OFFSET(x) offsetof(SetTSContext, x)