matroskadec: change size check in matroska_decode_buffer() to unsigned

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-06-15 01:29:30 +02:00
parent 08169fc3d2
commit 4b7c52346a

View 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) {