comparison ra144.c @ 6879:a63a7b23d4ba libavcodec

Minor simplification of dec1()
author vitor
date Sun, 25 May 2008 16:52:14 +0000
parents 1cec54d18a84
children c39a7f5f10cb
comparison
equal deleted inserted replaced
6878:1cec54d18a84 6879:a63a7b23d4ba
232 } 232 }
233 233
234 static int dec1(signed short *decsp, const int *data, const int *inp, 234 static int dec1(signed short *decsp, const int *data, const int *inp,
235 int f) 235 int f)
236 { 236 {
237 short *ptr,*end; 237 int i;
238 238
239 end = (ptr = decsp) + 30; 239 for (i=0; i<30; i++)
240 240 *(decsp++) = *(inp++);
241 while (ptr < end)
242 *(ptr++) = *(inp++);
243 241
244 return rms(data, f); 242 return rms(data, f);
245 } 243 }
246 244
247 static int eq(const short *in, int *target) 245 static int eq(const short *in, int *target)