Fix segmentation fault of dual_filter in hbd mode
BUG=aomedia:142
Change-Id: Id21dd2d19e1e46a9225cd5f8f8b0705ae178118c
diff --git a/av1/common/reconinter.c b/av1/common/reconinter.c
index be4e886..39435e2 100644
--- a/av1/common/reconinter.c
+++ b/av1/common/reconinter.c
@@ -965,8 +965,13 @@
}
#if CONVOLVE_POST_ROUNDING
- // TODO(angiebird): This part needs optimization
+// TODO(angiebird): This part needs optimization
+#if CONFIG_AOM_HIGHBITDEPTH
+ if (!(xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH))
+ av1_convolve_rounding(tmp_dst, MAX_SB_SIZE, dst, dst_buf->stride, w, h);
+#else
av1_convolve_rounding(tmp_dst, MAX_SB_SIZE, dst, dst_buf->stride, w, h);
+#endif
#endif // CONVOLVE_POST_ROUNDING
}
}