lavu/timecode: Increase AV_TIMECODE_STR_SIZE.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 4 May 2017 23:23:24 +0000 (01:23 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 5 May 2017 08:09:12 +0000 (10:09 +0200)
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

index 56e3975..37c1361 100644 (file)
@@ -30,7 +30,7 @@
 #include <stdint.h>
 #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