[vlc-commits] Revert "xiph demux: Kill a warning (comparison betw. signed and unsigned)"

Jean-Baptiste Kempf git at videolan.org
Fri Oct 19 17:40:38 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 19 17:35:37 2012 +0200| [e27457cb8416841357501bbc4a4ae473f09db0b2] | committer: Jean-Baptiste Kempf

Revert "xiph demux: Kill a warning (comparison betw. signed and unsigned)"

This reverts commit ea5e62b58eb0660153f73b0870540e5175d00820.

This removes all code from Andri Pálsson

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e27457cb8416841357501bbc4a4ae473f09db0b2
---

 modules/demux/xiph.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/xiph.h b/modules/demux/xiph.h
index 0ce5dc4..9c92906 100644
--- a/modules/demux/xiph.h
+++ b/modules/demux/xiph.h
@@ -48,7 +48,7 @@ static inline int xiph_SplitHeaders(unsigned packet_size[], void *packet[], unsi
         }
         size += packet_size[i];
     }
-    if (end - current < (int)size)
+    if (end - current < size)
         return VLC_EGENERIC;
     packet_size[count - 1] = end - current - size;
 



More information about the vlc-commits mailing list