]> git.sesse.net Git - vlc/blobdiff - modules/demux/xiph.h
MP4: Parse transformation matrix
[vlc] / modules / demux / xiph.h
index 9b7e21cbdb45d468eb30b4d1050ccbe01a06cf14..0ce5dc4b2be2f4c44d4968b368151c6f6854f552 100644 (file)
@@ -48,10 +48,8 @@ static inline int xiph_SplitHeaders(unsigned packet_size[], void *packet[], unsi
         }
         size += packet_size[i];
     }
-
-    if ((uint8_t)(end - current) < size)
+    if (end - current < (int)size)
         return VLC_EGENERIC;
-
     packet_size[count - 1] = end - current - size;
 
     /* Copy the payloads */