diff mbox series

[FFmpeg-devel,1/2] avfilter/vf_drawtext: don't assign twice consecutively to the same value

Message ID tencent_C4CA2AADD31B9C5D4B892607D0BCA6E8A706@qq.com
State New
Headers show
Series [FFmpeg-devel,1/2] avfilter/vf_drawtext: don't assign twice consecutively to the same value
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

zhilizhao(赵志立) June 10, 2021, 1:25 p.m. UTC
---
 libavfilter/vf_drawtext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index c4c09894e4..f7b9c25e62 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1052,7 +1052,7 @@  static int func_strftime(AVFilterContext *ctx, AVBPrint *bp,
     if (tag == 'L')
         localtime_r(&now, &tm);
     else
-        tm = *gmtime_r(&now, &tm);
+        gmtime_r(&now, &tm);
     av_bprint_strftime(bp, fmt, &tm);
     return 0;
 }