Commit f4c904c7 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Change the scope of a declaration

This is to avoid compiler warning of "mixed declarations and code".

Change-Id: I887a1cf27e777672563bda527b3d6cf70a589a8a
parent 685039d7
...@@ -1120,15 +1120,16 @@ void av1_build_inter_predictors_sb_sub8x8_extend(MACROBLOCKD *xd, ...@@ -1120,15 +1120,16 @@ void av1_build_inter_predictors_sb_sub8x8_extend(MACROBLOCKD *xd,
mi_x, mi_y); mi_x, mi_y);
} }
#if CONFIG_EXT_INTER #if CONFIG_EXT_INTER
BUFFER_SET ctx = { { xd->plane[0].dst.buf, xd->plane[1].dst.buf, if (is_interintra_pred(&xd->mi[0]->mbmi)) {
xd->plane[2].dst.buf }, BUFFER_SET ctx = { { xd->plane[0].dst.buf, xd->plane[1].dst.buf,
{ xd->plane[0].dst.stride, xd->plane[1].dst.stride, xd->plane[2].dst.buf },
xd->plane[2].dst.stride } }; { xd->plane[0].dst.stride, xd->plane[1].dst.stride,
if (is_interintra_pred(&xd->mi[0]->mbmi)) xd->plane[2].dst.stride } };
av1_build_interintra_predictors( av1_build_interintra_predictors(
xd, xd->plane[0].dst.buf, xd->plane[1].dst.buf, xd->plane[2].dst.buf, xd, xd->plane[0].dst.buf, xd->plane[1].dst.buf, xd->plane[2].dst.buf,
xd->plane[0].dst.stride, xd->plane[1].dst.stride, xd->plane[0].dst.stride, xd->plane[1].dst.stride,
xd->plane[2].dst.stride, &ctx, bsize); xd->plane[2].dst.stride, &ctx, bsize);
}
#endif // CONFIG_EXT_INTER #endif // CONFIG_EXT_INTER
} }
......
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