Browse Source

drawtext: draw glyphs for the strftime()-expanded text

In draw_glyphs(), draw glyphs in dtext->expanded_text rather than in
dtext->text. Fix crash if a strftime() sequence is used.
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
efc8c709c9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_drawtext.c

+ 1
- 1
libavfilter/vf_drawtext.c View File

@@ -498,7 +498,7 @@ static inline void drawbox(AVFilterBufferRef *picref, unsigned int x, unsigned i
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 = dtext->text;
char *text = HAVE_LOCALTIME_R ? dtext->expanded_text : dtext->text;
uint32_t code = 0;
int i;
uint8_t *p;


Loading…
Cancel
Save