diff options
author | Johann <johannkoenig@google.com> | 2013-10-29 18:39:00 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2013-10-29 18:39:00 -0700 |
commit | d03d960369aaef1e6af39c13a8e9910af9c53469 (patch) | |
tree | f8fa3ccccb808f5d99bc9f6ac5dd172bfc51398e /vp8 | |
parent | 15a24c6fba5d7667a6bff3c948473978ca4fe4ff (diff) | |
parent | 7e5f5e26ba508ef85a9dd0837031e28cc9b9e6c2 (diff) | |
download | libvpx-d03d960369aaef1e6af39c13a8e9910af9c53469.tar libvpx-d03d960369aaef1e6af39c13a8e9910af9c53469.tar.gz libvpx-d03d960369aaef1e6af39c13a8e9910af9c53469.tar.bz2 libvpx-d03d960369aaef1e6af39c13a8e9910af9c53469.zip |
Merge "threading.c: use vpx_memset instead of cast"
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/decoder/threading.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c index 73031898e..fe290cffe 100644 --- a/vp8/decoder/threading.c +++ b/vp8/decoder/threading.c @@ -227,7 +227,7 @@ static void mt_decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd, { vp8_dc_only_idct_add(b->qcoeff[0] * DQC[0], dst, dst_stride, dst, dst_stride); - ((int *)b->qcoeff)[0] = 0; + vpx_memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); } } } @@ -264,21 +264,14 @@ static void mt_decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd, vp8_short_inv_walsh4x4(&b->dqcoeff[0], xd->qcoeff); - ((int *)b->qcoeff)[0] = 0; - ((int *)b->qcoeff)[1] = 0; - ((int *)b->qcoeff)[2] = 0; - ((int *)b->qcoeff)[3] = 0; - ((int *)b->qcoeff)[4] = 0; - ((int *)b->qcoeff)[5] = 0; - ((int *)b->qcoeff)[6] = 0; - ((int *)b->qcoeff)[7] = 0; + vpx_memset(b->qcoeff, 0, 16 * sizeof(b->qcoeff[0])); } else { b->dqcoeff[0] = b->qcoeff[0] * xd->dequant_y2[0]; vp8_short_inv_walsh4x4_1(&b->dqcoeff[0], xd->qcoeff); - ((int *)b->qcoeff)[0] = 0; + vpx_memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); } /* override the dc dequant constant in order to preserve the |