mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
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 olen;
|
||||
|
||||
if (pkt_size >= 10000000)
|
||||
if (pkt_size >= 10000000U)
|
||||
return -1;
|
||||
|
||||
switch (encodings[0].compression.algo) {
|
||||
|
Loading…
Reference in New Issue
Block a user