Skip to content
GitLab
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
aad7b55b
Commit
aad7b55b
authored
Mar 18, 2014
by
James Zern
Committed by
Gerrit Code Review
Mar 18, 2014
Browse files
Merge "rdopt: quiet -Warray-bounds warnings"
parents
f8746574
268f32db
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/encoder/rdopt.c
View file @
aad7b55b
...
...
@@ -528,19 +528,16 @@ static int cost_coeffs(MACROBLOCK *mb, BLOCKD *b, int type, ENTROPY_CONTEXT *a,
VP8_COMBINEENTROPYCONTEXTS
(
pt
,
*
a
,
*
l
);
# define QC( I) ( qcoeff_ptr [vp8_default_zig_zag1d[I]] )
assert
(
eob
<=
16
);
for
(;
c
<
eob
;
c
++
)
{
int
v
=
QC
(
c
)
;
int
t
=
vp8_dct_value_tokens_ptr
[
v
].
Token
;
const
int
v
=
qcoeff_ptr
[
vp8_default_zig_zag1d
[
c
]]
;
const
int
t
=
vp8_dct_value_tokens_ptr
[
v
].
Token
;
cost
+=
mb
->
token_costs
[
type
]
[
vp8_coef_bands
[
c
]]
[
pt
]
[
t
];
cost
+=
vp8_dct_value_cost_ptr
[
v
];
pt
=
vp8_prev_token_class
[
t
];
}
# undef QC
if
(
c
<
16
)
cost
+=
mb
->
token_costs
[
type
]
[
vp8_coef_bands
[
c
]]
[
pt
]
[
DCT_EOB_TOKEN
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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