Commit 607550ea authored by Angie Chiang's avatar Angie Chiang

Fix seg fault introduced in dist_block()

BUG=https://bugs.chromium.org/p/aomedia/issues/detail?id=420

Change-Id: I20ae2fda1e545018329373bc3c29764cfd6935e9
parent 44d7e669
......@@ -1494,7 +1494,7 @@ static void dist_block(const AV1_COMP *cpi, MACROBLOCK *x, int plane,
} else {
#if CONFIG_AOM_HIGHBITDEPTH
DECLARE_ALIGNED(16, uint16_t, recon16[MAX_TX_SQUARE]);
uint8_t *recon = (uint8_t *)recon16;
uint8_t *recon = CONVERT_TO_BYTEPTR(recon16);
#else
DECLARE_ALIGNED(16, uint8_t, recon[MAX_TX_SQUARE]);
#endif // CONFIG_AOM_HIGHBITDEPTH
......
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