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
Guillaume Martres
aom-rav1e
Commits
842c573e
Commit
842c573e
authored
May 03, 2013
by
Ronald S. Bultje
Committed by
Gerrit Code Review
May 03, 2013
Browse files
Merge "Fix overflow in RD error calculation code." into experimental
parents
30d7b795
ee808e52
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_rdopt.c
View file @
842c573e
...
...
@@ -602,7 +602,7 @@ static int block_error(int16_t *coeff, int16_t *dqcoeff,
for
(
i
=
0
;
i
<
block_size
;
i
++
)
{
int
this_diff
=
coeff
[
i
]
-
dqcoeff
[
i
];
error
+=
this_diff
*
this_diff
;
error
+=
(
unsigned
)
this_diff
*
this_diff
;
}
error
>>=
shift
;
...
...
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