Commit 2a67a34f authored by Johann's avatar Johann Committed by Gerrit Code Review
Browse files

Merge "vp9_decodframe.c: use vpx_memset instead of cast"

parents b18ea70b dc799a87
...@@ -282,7 +282,7 @@ static void decode_block(int plane, int block, BLOCK_SIZE plane_bsize, ...@@ -282,7 +282,7 @@ static void decode_block(int plane, int block, BLOCK_SIZE plane_bsize,
} }
if (eob == 1) { if (eob == 1) {
*((int32_t *)qcoeff) = 0; vpx_memset(qcoeff, 0, 2 * sizeof(qcoeff[0]));
} else { } else {
if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10) if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10)
vpx_memset(qcoeff, 0, 4 * (4 << tx_size) * sizeof(qcoeff[0])); vpx_memset(qcoeff, 0, 4 * (4 << tx_size) * sizeof(qcoeff[0]));
......
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