[FFmpeg-cvslog] lavu/timecode: Increase AV_TIMECODE_STR_SIZE.
Carl Eugen Hoyos
git at videolan.org
Fri May 5 11:09:26 EEST 2017
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri May 5 01:23:24 2017 +0200| [ae68bb779ca7923197a7eafca8b0895d544b29f7] | committer: Carl Eugen Hoyos
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
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae68bb779ca7923197a7eafca8b0895d544b29f7
---
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 <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
More information about the ffmpeg-cvslog
mailing list