summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2014-02-04 20:06:28 -0800
committerJames Zern <jzern@google.com>2014-02-04 20:06:28 -0800
commit75d7ee33309701c64ecb23a4bde3d61cc2e00e2f (patch)
treeaf8156b19ed5e5ae1dd285fb7c171e9b8f3c703a /vpxdec.c
parentbe34c188a158264a20989f29420952e423af5fd9 (diff)
downloadlibvpx-75d7ee33309701c64ecb23a4bde3d61cc2e00e2f.tar.gz
libvpx-75d7ee33309701c64ecb23a4bde3d61cc2e00e2f.tar.bz2
libvpx-75d7ee33309701c64ecb23a4bde3d61cc2e00e2f.zip
vpxdec: normalize frame size types
int -> size_t for threshold values. this silences a few signed/unsigned comparison warnings Change-Id: Ic7b7af61f75f60a1b6d04167640cea2d09bbd967
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 6d5ca2469..98d1550a5 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) {