From 845383c358a8c5d8e24e43f6743ec435d2dd3f42 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 5 Sep 2011 23:01:49 +0200 Subject: [PATCH] vf_drawtext: always use expanded_text as we always support strftime() now and dont depend on localtime_r() anymore Found-by: Rolf Siegrist Signed-off-by: Michael Niedermayer --- libavfilter/vf_drawtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index b3686214f0..1ef8e69719 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -520,7 +520,7 @@ static inline int is_newline(uint32_t c) static int draw_glyphs(DrawTextContext *dtext, AVFilterBufferRef *picref, int width, int height, const uint8_t rgbcolor[4], const uint8_t yuvcolor[4], int x, int y) { - char *text = HAVE_LOCALTIME_R ? dtext->expanded_text : dtext->text; + char *text = dtext->expanded_text; uint32_t code = 0; int i; uint8_t *p;