matroskadec: change size check in matroska_decode_buffer() to unsigned
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 14 Jun 2012 23:29:30 +0000 (01:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 14 Jun 2012 23:29:30 +0000 (01:29 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskadec.c

index 77d9636..74df076 100644 (file)
@@ -1045,7 +1045,7 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
     int result = 0;
     int olen;
 
-    if (pkt_size >= 10000000)
+    if (pkt_size >= 10000000U)
         return -1;
 
     switch (encodings[0].compression.algo) {