From ae68bb779ca7923197a7eafca8b0895d544b29f7 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 5 May 2017 01:23:24 +0200 Subject: [PATCH] lavu/timecode: Increase AV_TIMECODE_STR_SIZE. Fixes the following warning: libavutil/timecode.c:103:60: warning: '%02d' directive output may be truncated writing between 2 and 10 bytes into a region of size between 0 and 7 --- libavutil/timecode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/timecode.h b/libavutil/timecode.h index 56e3975fd8..37c1361bc2 100644 --- a/libavutil/timecode.h +++ b/libavutil/timecode.h @@ -30,7 +30,7 @@ #include #include "rational.h" -#define AV_TIMECODE_STR_SIZE 16 +#define AV_TIMECODE_STR_SIZE 23 enum AVTimecodeFlag { AV_TIMECODE_FLAG_DROPFRAME = 1<<0, ///< timecode is drop frame