From 013c3eb05cbb58add0650165828d5cbf2e2e5e39 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 2 Nov 2014 19:20:26 +0100 Subject: [PATCH] avfilter/vf_drawtext: use gm_time_r() for thread saftey Signed-off-by: Michael Niedermayer --- libavfilter/vf_drawtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 857dee630b..d20f8055c4 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -855,7 +855,7 @@ static int func_strftime(AVFilterContext *ctx, AVBPrint *bp, if (tag == 'L') localtime_r(&now, &tm); else - tm = *gmtime(&now); + tm = *gmtime_r(&now, &tm); av_bprint_strftime(bp, fmt, &tm); return 0; }