diff --git a/vpxdec.c b/vpxdec.c index 6d5ca246920d13caa46802a0cb8c2836cbc197ce..98d1550a5d92073563c758304030c5ada2f65930 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -187,8 +187,8 @@ static int raw_read_frame(FILE *infile, uint8_t **buffer, if (!feof(infile)) warn("Failed to read RAW frame size\n"); } else { - const int kCorruptFrameThreshold = 256 * 1024 * 1024; - const int kFrameTooSmallThreshold = 256 * 1024; + const size_t kCorruptFrameThreshold = 256 * 1024 * 1024; + const size_t kFrameTooSmallThreshold = 256 * 1024; frame_size = mem_get_le32(raw_hdr); if (frame_size > kCorruptFrameThreshold) {