diff --git a/vp9/decoder/vp9_decodframe.c b/vp9/decoder/vp9_decodframe.c index 40cab68e8b2ce92821c5db53447a36a391dbcced..5cb4d0eae679386ece01bb62dc00e91c9f6457ad 100644 --- a/vp9/decoder/vp9_decodframe.c +++ b/vp9/decoder/vp9_decodframe.c @@ -276,7 +276,7 @@ static void decode_block(int plane, int block, BLOCK_SIZE plane_bsize, } if (eob == 1) { - *((int32_t *)qcoeff) = 0; + vpx_memset(qcoeff, 0, 2 * sizeof(qcoeff[0])); } else { if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10) vpx_memset(qcoeff, 0, 4 * (4 << tx_size) * sizeof(qcoeff[0]));