From 98aafc5bbfa94cee889399d80177bca10ca202aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Wed, 11 Jan 2012 17:51:57 +0100 Subject: timecode: set a fixed buffer size of 16B for tc string. --- libavfilter/vf_drawtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/vf_drawtext.c') 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); } -- cgit v1.2.3