[MPlayer-cvslog] r18672 - in trunk/libmpdemux: ebml.c url.c

rtogni subversion at mplayerhq.hu
Sat Jun 10 01:19:13 CEST 2006


Author: rtogni
Date: Sat Jun 10 01:19:13 2006
New Revision: 18672

Modified:
   trunk/libmpdemux/ebml.c
   trunk/libmpdemux/url.c

Log:
Protect SIZE_MAX use


Modified: trunk/libmpdemux/ebml.c
==============================================================================
--- trunk/libmpdemux/ebml.c	(original)
+++ trunk/libmpdemux/ebml.c	Sat Jun 10 01:19:13 2006
@@ -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.

Modified: trunk/libmpdemux/url.c
==============================================================================
--- trunk/libmpdemux/url.c	(original)
+++ trunk/libmpdemux/url.c	Sat Jun 10 01:19:13 2006
@@ -15,6 +15,10 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
+
 URL_t*
 url_new(const char* url) {
 	int pos1, pos2,v6addr = 0;



More information about the MPlayer-cvslog mailing list