Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
c25e37a9
Commit
c25e37a9
authored
Sep 26, 2018
by
Nathan Egge
Browse files
Fix -Wvla warning in cdef_filter_block_c()
parent
068cddb9
Pipeline
#426
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cdef.c
View file @
c25e37a9
...
...
@@ -91,7 +91,8 @@ static void cdef_filter_block_c(pixel *const dst, const ptrdiff_t dst_stride,
const
int
damping
,
const
enum
CdefEdgeFlags
edges
)
{
const
ptrdiff_t
tmp_stride
=
16
>>
(
w
==
4
);
uint16_t
tmp
[
tmp_stride
*
(
h
+
4
)];
assert
((
w
==
4
||
w
==
8
)
&&
(
h
==
4
||
h
==
8
));
uint16_t
tmp
[
192
];
// 16*12 is the maximum value of tmp_stride * (h + 4)
uint16_t
*
tmp2
=
tmp
+
2
*
tmp_stride
+
2
;
const
uint8_t
*
const
pri_taps
=
cdef_pri_taps
[(
pri_strength
>>
(
BITDEPTH
-
8
))
&
1
];
const
uint8_t
*
const
sec_taps
=
cdef_sec_taps
[(
pri_strength
>>
(
BITDEPTH
-
8
))
&
1
];
...
...
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