drawtext: Drop stray guards

There is a fallback for localtime_r and it is in use already.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Luca Barbato 2015-07-31 13:49:03 +02:00
parent 4fee11ab05
commit fe026ba960

View File

@ -467,10 +467,6 @@ static av_cold int init(AVFilterContext *ctx)
} }
s->tabsize *= glyph->advance; s->tabsize *= glyph->advance;
#if !HAVE_LOCALTIME_R
av_log(ctx, AV_LOG_WARNING, "strftime() expansion unavailable!\n");
#endif
return 0; return 0;
} }
@ -818,7 +814,7 @@ static int draw_glyphs(DrawTextContext *s, AVFrame *frame,
const uint8_t rgbcolor[4], const uint8_t yuvcolor[4], const uint8_t rgbcolor[4], const uint8_t yuvcolor[4],
int x, int y) int x, int y)
{ {
char *text = HAVE_LOCALTIME_R ? s->expanded_text : s->text; char *text = s->expanded_text;
uint32_t code = 0; uint32_t code = 0;
int i; int i;
uint8_t *p; uint8_t *p;