Commit 98bf413b authored by Yaowu Xu's avatar Yaowu Xu
Browse files

fix a compiling error when CONFIG_COMP_INTRA_PRED not defined

Change-Id: I4159ff365953598d9c9bc3ecacfb5c5f4a315b45
parent c3f5b293
......@@ -1124,9 +1124,11 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
if (mode == B_PRED)
{
int j = 0, uses_second = m->bmi[0].as_mode.second != (B_PREDICTION_MODE) (B_DC_PRED - 1);
int j = 0;
#if CONFIG_COMP_INTRA_PRED
int uses_second = m->bmi[0].as_mode.second != (B_PREDICTION_MODE) (B_DC_PRED - 1);
vp8_write(w, uses_second, 128);
#endif
do {
#if CONFIG_COMP_INTRA_PRED
B_PREDICTION_MODE mode2 = m->bmi[j].as_mode.second;
......@@ -1514,9 +1516,11 @@ static void write_kfmodes(VP8_COMP *cpi)
if (ym == B_PRED)
{
const int mis = c->mode_info_stride;
int i = 0, uses_second = m->bmi[0].as_mode.second != (B_PREDICTION_MODE) (B_DC_PRED - 1);
int i = 0;
#if CONFIG_COMP_INTRA_PRED
int uses_second = m->bmi[0].as_mode.second != (B_PREDICTION_MODE) (B_DC_PRED - 1);
vp8_write(bc, uses_second, 128);
#endif
do
{
const B_PREDICTION_MODE A = above_block_mode(m, i, mis);
......
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