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
29062db3
Commit
29062db3
authored
Oct 07, 2014
by
Yaowu Xu
Committed by
Gerrit Code Review
Oct 07, 2014
Browse files
Merge "Add range checking for decoded coefficients."
parents
cfc337aa
9751aa12
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_detokenize.c
View file @
29062db3
...
...
@@ -190,7 +190,11 @@ static int decode_coefs(VP9_COMMON *cm, const MACROBLOCKD *xd, PLANE_TYPE type,
}
}
v
=
(
val
*
dqv
)
>>
dq_shift
;
#if CONFIG_COEFFICIENT_RANGE_CHECKING
dqcoeff
[
scan
[
c
]]
=
check_range
(
vp9_read_bit
(
r
)
?
-
v
:
v
);
#else
dqcoeff
[
scan
[
c
]]
=
vp9_read_bit
(
r
)
?
-
v
:
v
;
#endif
token_cache
[
scan
[
c
]]
=
vp9_pt_energy_class
[
token
];
++
c
;
ctx
=
get_coef_context
(
nb
,
token_cache
,
c
);
...
...
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