[x265] rdcost: overflow check by integer

Derek Buitenhuis derek.buitenhuis at gmail.com
Sat May 24 16:07:42 CEST 2014


On 5/24/2014 6:18 AM, Satoshi Nakagawa wrote:
> 
> # 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>

[...]

>  #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"

x265.h is considered a C header (public API), and I don't think this has
much place in it.

Aside: Most systems I've seen seem to do this in via -D<...> or whatever.

- Derek


More information about the x265-devel mailing list