Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
9bbbde5a
Commit
9bbbde5a
authored
Nov 21, 2017
by
David Barker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile warning with --disable-highbitdepth
Change-Id: Ic31a53a37ff9200fad178e5054cffc4b87c6cc42
parent
d0d6097d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
av1/common/restoration.c
av1/common/restoration.c
+4
-0
No files found.
av1/common/restoration.c
View file @
9bbbde5a
...
...
@@ -1690,9 +1690,13 @@ static void extend_lines(uint8_t *buf, int width, int height, int stride,
int
extend
,
int
use_highbitdepth
)
{
for
(
int
i
=
0
;
i
<
height
;
++
i
)
{
if
(
use_highbitdepth
)
{
#if CONFIG_HIGHBITDEPTH
uint16_t
*
buf16
=
(
uint16_t
*
)
buf
;
aom_memset16
(
buf16
-
extend
,
buf16
[
0
],
extend
);
aom_memset16
(
buf16
+
width
,
buf16
[
width
-
1
],
extend
);
#else
assert
(
0
&&
"use_highbitdepth set but CONFIG_HIGHBITDEPTH not enabled"
);
#endif // CONFIG_HIGHBITDEPTH
}
else
{
memset
(
buf
-
extend
,
buf
[
0
],
extend
);
memset
(
buf
+
width
,
buf
[
width
-
1
],
extend
);
...
...
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