diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2012-01-11 17:51:57 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-01-11 18:14:03 +0100 |
commit | 98aafc5bbfa94cee889399d80177bca10ca202aa (patch) | |
tree | 49f83453ce3b6d218749ba9f07c2e5370b10bc1a /libavfilter | |
parent | 0644cabd7ab60b7384349ddc41262d4f21a084d3 (diff) |
timecode: set a fixed buffer size of 16B for tc string.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 0de5b9f820..d0d854b994 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -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); } |