Commit 9bbbde5a authored by David Barker's avatar David Barker

Fix compile warning with --disable-highbitdepth

Change-Id: Ic31a53a37ff9200fad178e5054cffc4b87c6cc42
parent d0d6097d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment