From dc799a875b8717c6ec4baf63a562fa98999dc71f Mon Sep 17 00:00:00 2001 From: Johann Date: Tue, 29 Oct 2013 12:51:48 -0700 Subject: [PATCH] vp9_decodframe.c: use vpx_memset instead of cast Fix warning with -Wstrict-aliasing=1 Change-Id: Idfac09be1ab328923883e63436577f1018c895b8 --- vp9/decoder/vp9_decodframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/decoder/vp9_decodframe.c b/vp9/decoder/vp9_decodframe.c index 40cab68e8..5cb4d0eae 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])); -- 2.40.0