diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-02 21:20:26 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-02 21:20:26 +0300 |
commit | 013c3eb05cbb58add0650165828d5cbf2e2e5e39 (patch) | |
tree | 16b87cc750f3f2e494570ddf9e16693f7099d2a6 /libavfilter | |
parent | a52cb42ba662971cd4b65c06fec5c742368d38d8 (diff) |
avfilter/vf_drawtext: use gm_time_r() for thread saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |