Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
abf0df08
Commit
abf0df08
authored
Jul 01, 2014
by
Jim Bankoski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
validate uv block size when reading partition
Change-Id: I74fc5f1a7bab3128cdd49441b83ec3a25aee65ca
parent
14e3caca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decodeframe.c
+5
-1
No files found.
vp9/decoder/vp9_decodeframe.c
View file @
abf0df08
...
...
@@ -410,13 +410,17 @@ static void decode_partition(VP9_COMMON *const cm, MACROBLOCKD *const xd,
vp9_reader
*
r
,
BLOCK_SIZE
bsize
)
{
const
int
hbs
=
num_8x8_blocks_wide_lookup
[
bsize
]
/
2
;
PARTITION_TYPE
partition
;
BLOCK_SIZE
subsize
;
BLOCK_SIZE
subsize
,
uv_
subsize
;
if
(
mi_row
>=
cm
->
mi_rows
||
mi_col
>=
cm
->
mi_cols
)
return
;
partition
=
read_partition
(
cm
,
xd
,
hbs
,
mi_row
,
mi_col
,
bsize
,
r
);
subsize
=
get_subsize
(
bsize
,
partition
);
uv_subsize
=
ss_size_lookup
[
subsize
][
cm
->
subsampling_x
][
cm
->
subsampling_y
];
if
(
subsize
>=
BLOCK_8X8
&&
uv_subsize
==
BLOCK_INVALID
)
vpx_internal_error
(
&
cm
->
error
,
VPX_CODEC_CORRUPT_FRAME
,
"Invalid block size."
);
if
(
subsize
<
BLOCK_8X8
)
{
decode_block
(
cm
,
xd
,
tile
,
mi_row
,
mi_col
,
r
,
subsize
);
}
else
{
...
...
Write
Preview
Markdown
is supported
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