[FFmpeg-cvslog] matroskadec: change size check in matroska_decode_buffer() to unsigned

Michael Niedermayer git at videolan.org
Fri Jun 15 01:45:29 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 15 01:29:30 2012 +0200| [4b7c52346a2e3cb2d47f8af0b2f036fb9317f502] | committer: Michael Niedermayer

matroskadec: change size check in matroska_decode_buffer() to unsigned

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b7c52346a2e3cb2d47f8af0b2f036fb9317f502
---

 libavformat/matroskadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 77d9636..74df076 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) {



More information about the ffmpeg-cvslog mailing list