aboutsummaryrefslogtreecommitdiff
path: root/decoder/ih264d_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ih264d_defs.h')
-rw-r--r--decoder/ih264d_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/decoder/ih264d_defs.h b/decoder/ih264d_defs.h
index ec3f2af..94d0d61 100644
--- a/decoder/ih264d_defs.h
+++ b/decoder/ih264d_defs.h
@@ -34,6 +34,8 @@
*
************************************************************************
*/
+#include <stdint.h>
+
#define H264_MAX_FRAME_WIDTH 4080
#define H264_MAX_FRAME_HEIGHT 4080
#define H264_MAX_FRAME_SIZE (4096 * 2048)
@@ -47,6 +49,9 @@
#define CHECKBIT(a,i) ((a) & (1 << i))
#define CLEARBIT(a,i) ((a) &= ~(1 << i))
+/** Macro to check if a number lies in the valid integer range */
+#define IS_OUT_OF_RANGE_S32(a) (((a) < INT32_MIN) || ((a) > INT32_MAX))
+
/** Macro to convert a integer to a boolean value */
#define BOOLEAN(x) (!!(x))