diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:53:05 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-06-23 20:53:05 +0000 |
commit | 0a03b6f049cdddbf819f34c33f065a5721dcd525 (patch) | |
tree | 6dc6f6d15e4e7b3eb7bd791cca79e559a7f12d7d /libavcodec/ra144.c | |
parent | 09addb11cefd1f1f4e44d202762f2f8f484b2684 (diff) | |
download | ffmpeg-0a03b6f049cdddbf819f34c33f065a5721dcd525.tar.gz |
Use sizeof() intead of hardcoding the values
Originally committed as revision 13933 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 67b254461a..44c90167d6 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -162,7 +162,7 @@ static void lpc_filter(const int16_t *lpc_coefs, uint16_t *in, int len) new_val = ptr[10] - sum; if (new_val < -32768 || new_val > 32767) { - memset(in, 0, 100); + memset(in, 0, 50*sizeof(*in)); return; } @@ -224,7 +224,7 @@ static void do_output_subblock(RA144Context *ractx, m[2] = ((cb2_base[cb2_idx] >> 4) * gval) >> 8; memmove(ractx->adapt_cb, ractx->adapt_cb + BLOCKSIZE, - (BUFFERSIZE - BLOCKSIZE) * 2); + (BUFFERSIZE - BLOCKSIZE) * sizeof(*ractx->adapt_cb)); block = ractx->adapt_cb + BUFFERSIZE - BLOCKSIZE; |