Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2012-01-11 20:51:57 +0400
committerClément Bœsch <ubitux@gmail.com>2012-01-11 21:14:03 +0400
commit98aafc5bbfa94cee889399d80177bca10ca202aa (patch)
tree49f83453ce3b6d218749ba9f07c2e5370b10bc1a /libavfilter
parent0644cabd7ab60b7384349ddc41262d4f21a084d3 (diff)
timecode: set a fixed buffer size of 16B for tc string.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_drawtext.c2
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);
}