Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
7e21ef2c
Commit
7e21ef2c
authored
Sep 26, 2017
by
Cheng Chen
Browse files
Fix a potential assertion failure
Change-Id: I24d129aceb66e00388bedf98bc8e46524c0812eb
parent
ad667d90
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/seg_common.c
View file @
7e21ef2c
...
...
@@ -46,10 +46,11 @@ int av1_is_segfeature_signed(SEG_LVL_FEATURES feature_id) {
void
av1_set_segdata
(
struct
segmentation
*
seg
,
int
segment_id
,
SEG_LVL_FEATURES
feature_id
,
int
seg_data
)
{
assert
(
seg_data
<=
seg_feature_data_max
[
feature_id
]);
if
(
seg_data
<
0
)
{
assert
(
seg_feature_data_signed
[
feature_id
]);
assert
(
-
seg_data
<=
seg_feature_data_max
[
feature_id
]);
}
else
{
assert
(
seg_data
<=
seg_feature_data_max
[
feature_id
]);
}
seg
->
feature_data
[
segment_id
][
feature_id
]
=
seg_data
;
...
...
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