Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.c
+1
-1
No files found.
vp9/encoder/vp9_rdopt.c
View file @
842c573e
...
@@ -602,7 +602,7 @@ static int block_error(int16_t *coeff, int16_t *dqcoeff,
...
@@ -602,7 +602,7 @@ static int block_error(int16_t *coeff, int16_t *dqcoeff,
for
(
i
=
0
;
i
<
block_size
;
i
++
)
{
for
(
i
=
0
;
i
<
block_size
;
i
++
)
{
int
this_diff
=
coeff
[
i
]
-
dqcoeff
[
i
];
int
this_diff
=
coeff
[
i
]
-
dqcoeff
[
i
];
error
+=
this_diff
*
this_diff
;
error
+=
(
unsigned
)
this_diff
*
this_diff
;
}
}
error
>>=
shift
;
error
>>=
shift
;
...
...
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