Commit 9d477bd2 authored by James Zern's avatar James Zern Committed by Gerrit Code Review

Merge "vpxdec: normalize frame size types"

parents 77f7f6a8 75d7ee33
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment