Commit 013c3eb0 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_drawtext: use gm_time_r() for thread saftey

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a52cb42b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment