timecode: set a fixed buffer size of 16B for tc string.
This commit is contained in:
parent
0644cabd7a
commit
98aafc5bbf
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue