avcodec/setts_bsf: fix memleak

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Zhao Zhili 3 years ago committed by James Almer
parent 31916d3d9f
commit 6f210ebae2
  1. 2
      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)

Loading…
Cancel
Save