Minor simplification of dec1()

Originally committed as revision 13392 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-05-25 16:52:14 +00:00
parent 4bf8f3029b
commit ac1c27b21c
1 changed files with 3 additions and 5 deletions

View File

@ -234,12 +234,10 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs
static int dec1(signed short *decsp, const int *data, const int *inp,
int f)
{
short *ptr,*end;
int i;
end = (ptr = decsp) + 30;
while (ptr < end)
*(ptr++) = *(inp++);
for (i=0; i<30; i++)
*(decsp++) = *(inp++);
return rms(data, f);
}