OSDN Git Service

matroskadec: fix incorrect unsigned->signed conversion
authorDale Curtis <dalecurtis@chromium.org>
Thu, 14 Jun 2012 22:22:25 +0000 (15:22 -0700)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 19 Sep 2012 18:34:14 +0000 (20:34 +0200)
libavformat/matroskadec.c

index 0680a6e..deb272c 100644 (file)
@@ -1924,7 +1924,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
                 }
             } else {
                 MatroskaTrackEncoding *encodings = track->encodings.elem;
-                int pkt_size = lace_size[n];
+                uint32_t pkt_size = lace_size[n];
                 uint8_t *pkt_data = data;
 
                 if (pkt_size > size) {