Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
9d477bd2
Commit
9d477bd2
authored
Feb 05, 2014
by
James Zern
Committed by
Gerrit Code Review
Feb 05, 2014
Browse files
Merge "vpxdec: normalize frame size types"
parents
77f7f6a8
75d7ee33
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpxdec.c
View file @
9d477bd2
...
...
@@ -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
in
t
kCorruptFrameThreshold
=
256
*
1024
*
1024
;
const
in
t
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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment