[FFmpeg-cvslog] r13933 - trunk/libavcodec/ra144.c
vitor
subversion
Mon Jun 23 22:53:06 CEST 2008
Author: vitor
Date: Mon Jun 23 22:53:05 2008
New Revision: 13933
Log:
Use sizeof() intead of hardcoding the values
Modified:
trunk/libavcodec/ra144.c
Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c (original)
+++ trunk/libavcodec/ra144.c Mon Jun 23 22:53:05 2008
@@ -162,7 +162,7 @@ static void lpc_filter(const int16_t *lp
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(RA144Cont
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;
More information about the ffmpeg-cvslog
mailing list