mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avfilter/vf_drawtext: use gm_time_r() for thread saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a52cb42ba6
commit
013c3eb05c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue