[x265] rdcost: overflow check by integer

Satoshi Nakagawa nakagawa424 at oki.com
Sat May 24 07:18:58 CEST 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1400908625 -32400
#      Sat May 24 14:17:05 2014 +0900
# Node ID 6b6fb9d45a172ce093529f83a22ae4988b64d185
# Parent  91330e7dddd7ba02028cad7a8d458b79d38362f6
define __STDC_LIMIT_MACROS befor include <stdint.h>

diff -r 91330e7dddd7 -r 6b6fb9d45a17 source/common/common.h
--- a/source/common/common.h	Sat May 24 00:07:16 2014 +0900
+++ b/source/common/common.h	Sat May 24 14:17:05 2014 +0900
@@ -34,6 +34,8 @@
 #include <cstring>
 #include <ctime>
 
+#define __STDC_LIMIT_MACROS 1
+
 #include <stdint.h>
 #include <memory.h>
 #include <assert.h>
diff -r 91330e7dddd7 -r 6b6fb9d45a17 source/x265.h
--- a/source/x265.h	Sat May 24 00:07:16 2014 +0900
+++ b/source/x265.h	Sat May 24 14:17:05 2014 +0900
@@ -24,6 +24,8 @@
 #ifndef X265_H
 #define X265_H
 
+#define __STDC_LIMIT_MACROS 1
+
 #include <stdint.h>
 #include "x265_config.h"
 


More information about the x265-devel mailing list