1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

avfilter/vf_drawtext: use gm_time_r() for thread saftey

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-11-02 19:20:26 +01:00
parent a52cb42ba6
commit 013c3eb05c

View File

@ -855,7 +855,7 @@ static int func_strftime(AVFilterContext *ctx, AVBPrint *bp,
if (tag == 'L') if (tag == 'L')
localtime_r(&now, &tm); localtime_r(&now, &tm);
else else
tm = *gmtime(&now); tm = *gmtime_r(&now, &tm);
av_bprint_strftime(bp, fmt, &tm); av_bprint_strftime(bp, fmt, &tm);
return 0; return 0;
} }