Browse code

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

Carl Eugen Hoyos authored on 2017/05/05 08:23:24
Showing 1 changed files
... ...
@@ -30,7 +30,7 @@
30 30
 #include <stdint.h>
31 31
 #include "rational.h"
32 32
 
33
-#define AV_TIMECODE_STR_SIZE 16
33
+#define AV_TIMECODE_STR_SIZE 23
34 34
 
35 35
 enum AVTimecodeFlag {
36 36
     AV_TIMECODE_FLAG_DROPFRAME      = 1<<0, ///< timecode is drop frame