summaryrefslogtreecommitdiffstats
path: root/libmpdemux/ebml.c
diff options
context:
space:
mode:
authorrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-09 23:19:13 +0000
committerrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-09 23:19:13 +0000
commitb6fb797e3c14c92a5bf3d70007913a4ae555247c (patch)
tree3e91eb2b80cc1b0b0563894b08b8e1af4b74d794 /libmpdemux/ebml.c
parent2f30f958b08e6b833b402000ed7259be5749ff51 (diff)
downloadmpv-b6fb797e3c14c92a5bf3d70007913a4ae555247c.tar.bz2
mpv-b6fb797e3c14c92a5bf3d70007913a4ae555247c.tar.xz
Protect SIZE_MAX use
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18672 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/ebml.c')
-rw-r--r--libmpdemux/ebml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/ebml.c b/libmpdemux/ebml.c
index 1482cb2754..21aefb5b74 100644
--- a/libmpdemux/ebml.c
+++ b/libmpdemux/ebml.c
@@ -14,6 +14,10 @@
#include "bswap.h"
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
+
/*
* Read: the element content data ID.
* Return: the ID.