matroskadec: change size check in matroska_decode_buffer() to unsigned

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/59/head
Michael Niedermayer 13 years ago
parent 08169fc3d2
commit 4b7c52346a
  1. 2
      libavformat/matroskadec.c

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

Loading…
Cancel
Save