Multiply bps by 2 if AOM_IMG_FMT_HIGHBITDEPTH.
This matches the switch statement in img_alloc_helper() that sets bps.
Change-Id: I36daaa45dd26745730b207daf03d15ea6d0c2c45
diff --git a/av1/av1_iface_common.h b/av1/av1_iface_common.h
index 5568c89..81ec619 100644
--- a/av1/av1_iface_common.h
+++ b/av1/av1_iface_common.h
@@ -56,6 +56,7 @@
img->stride[AOM_PLANE_U] = yv12->uv_stride;
img->stride[AOM_PLANE_V] = yv12->uv_stride;
if (yv12->flags & YV12_FLAG_HIGHBITDEPTH) {
+ bps *= 2;
// aom_image_t uses byte strides and a pointer to the first byte
// of the image.
img->fmt = (aom_img_fmt_t)(img->fmt | AOM_IMG_FMT_HIGHBITDEPTH);