matroskadec: change size check in matroska_decode_buffer() to unsigned
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
08169fc3d2
commit
4b7c52346a
@ -1045,7 +1045,7 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
int olen;
|
int olen;
|
||||||
|
|
||||||
if (pkt_size >= 10000000)
|
if (pkt_size >= 10000000U)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
switch (encodings[0].compression.algo) {
|
switch (encodings[0].compression.algo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user