diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-15 03:29:30 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-15 03:29:30 +0400 |
commit | 4b7c52346a2e3cb2d47f8af0b2f036fb9317f502 (patch) | |
tree | 6b102498ccd5baca9ac194203a43501b8468d85b /libavformat | |
parent | 08169fc3d2038af4d3b47cc0a9d7d731b5619877 (diff) |
matroskadec: change size check in matroska_decode_buffer() to unsigned
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 77d9636334..74df0764b2 100644 --- a/libavformat/matroskadec.c +++ b/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) { |