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
bdfdfeb4
Commit
bdfdfeb4
authored
Mar 18, 2014
by
James Zern
Committed by
Gerrit Code Review
Mar 18, 2014
Browse files
Merge "svc_encodeframe: quiet -Warray-bounds warnings"
parents
bd68f295
6c0565a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx/src/svc_encodeframe.c
View file @
bdfdfeb4
...
...
@@ -13,6 +13,7 @@
* VP9 SVC encoding support via libvpx
*/
#include
<assert.h>
#include
<math.h>
#include
<stdarg.h>
#include
<stdio.h>
...
...
@@ -550,6 +551,7 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
float
total
=
0
;
float
alloc_ratio
[
VPX_SS_MAX_LAYERS
]
=
{
0
};
assert
(
si
->
layers
<=
VPX_SS_MAX_LAYERS
);
for
(
i
=
0
;
i
<
si
->
layers
;
++
i
)
{
int
pos
=
i
+
VPX_SS_MAX_LAYERS
-
svc_ctx
->
spatial_layers
;
if
(
pos
<
VPX_SS_MAX_LAYERS
&&
si
->
scaling_factor_den
[
pos
]
>
0
)
{
...
...
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