]> git.sesse.net Git - vlc/blobdiff - modules/demux/xiph.h
AVI: fix potential crash on seek (Closes: LP#803006)
[vlc] / modules / demux / xiph.h
index 9c929063468729b7c3579d999c021a8cc3d35d02..0ce5dc4b2be2f4c44d4968b368151c6f6854f552 100644 (file)
@@ -48,7 +48,7 @@ static inline int xiph_SplitHeaders(unsigned packet_size[], void *packet[], unsi
         }
         size += packet_size[i];
     }
-    if (end - current < size)
+    if (end - current < (int)size)
         return VLC_EGENERIC;
     packet_size[count - 1] = end - current - size;