timecode: set a fixed buffer size of 16B for tc string.

This commit is contained in:
Clément Bœsch 2012-01-11 17:51:57 +01:00 committed by Clément Bœsch
parent 0644cabd7a
commit 98aafc5bbf
3 changed files with 4 additions and 4 deletions

View file

@ -731,7 +731,7 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
#if CONFIG_AVCODEC
if (dtext->tc.str) {
char tcbuf[sizeof("hh:mm:ss.ff")];
char tcbuf[16];
avpriv_timecode_to_string(tcbuf, &dtext->tc, dtext->frame_id++);
buf = av_asprintf("%s%s", dtext->text, tcbuf);
}