Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-02 21:20:26 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-02 21:20:26 +0300
commit013c3eb05cbb58add0650165828d5cbf2e2e5e39 (patch)
tree16b87cc750f3f2e494570ddf9e16693f7099d2a6 /libavfilter/vf_drawtext.c
parenta52cb42ba662971cd4b65c06fec5c742368d38d8 (diff)
avfilter/vf_drawtext: use gm_time_r() for thread saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r--libavfilter/vf_drawtext.c2
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;
}