Commit 5a31bc89 authored by Hui Su's avatar Hui Su

Remove unnecessary memset in build_intra_predictors()

Change-Id: I3064152e2c37ed330adc388e62acc2948a5cea82
parent 16dbfeda
......@@ -1723,12 +1723,12 @@ static void build_intra_predictors_high(
#endif // CONFIG_FILTER_INTRA
int base = 128 << (xd->bd - 8);
// base-1 base-1 base-1 .. base-1 base-1 base-1 base-1 base-1 base-1
// base+1 A B .. Y Z
// base+1 C D .. W X
// base+1 E F .. U V
// base+1 G H .. S T T T T T
aom_memset16(left_data, base + 1, sizeof(left_data) / sizeof(*left_data));
// The default values if ref pixels are not available:
// base-1 base-1 base-1 .. base-1 base-1 base-1 base-1 base-1 base-1
// base+1 A B .. Y Z
// base+1 C D .. W X
// base+1 E F .. U V
// base+1 G H .. S T T T T T
#if CONFIG_EXT_INTRA
if (is_dr_mode) {
......@@ -1960,13 +1960,13 @@ static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref,
xd->mi[0]->mbmi.filter_intra_mode_info.filter_intra_mode;
#endif // CONFIG_FILTER_INTRA
// 127 127 127 .. 127 127 127 127 127 127
// 129 A B .. Y Z
// 129 C D .. W X
// 129 E F .. U V
// 129 G H .. S T T T T T
// ..
memset(left_data, 129, sizeof(left_data));
// The default values if ref pixels are not available:
// 127 127 127 .. 127 127 127 127 127 127
// 129 A B .. Y Z
// 129 C D .. W X
// 129 E F .. U V
// 129 G H .. S T T T T T
// ..
#if CONFIG_EXT_INTRA
if (is_dr_mode) {
......
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