1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Simplify: glob->phase is always == 3

Originally committed as revision 14094 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-07-06 14:23:30 +00:00
parent f27f0fc374
commit 5be30c59da

View File

@ -181,22 +181,19 @@ static void co(int n, int i, int j, float *in, float *out, float *st1,
static void update(Real288_internal *glob)
{
int x,y;
float buffer1[40], temp1[37];
float buffer2[8], temp2[11];
y = glob->phase*5+5;
for (x=0; x < 40; x++)
buffer1[x] = glob->output[(y++)%40];
memcpy(buffer1 , glob->output + 20, 20*sizeof(*buffer1));
memcpy(buffer1 + 20, glob->output , 20*sizeof(*buffer1));
co(36, 40, 35, buffer1, temp1, glob->st1a, glob->st1b, table1);
if (pred(temp1, glob->st1, 36))
colmult(glob->pr1, glob->st1, table1a, 36);
y = glob->phase + 1;
for (x=0; x < 8; x++)
buffer2[x] = glob->history[(y++) & 7];
memcpy(buffer2 , glob->history + 4, 4*sizeof(*buffer2));
memcpy(buffer2 + 4, glob->history , 4*sizeof(*buffer2));
co(10, 8, 20, buffer2, temp2, glob->st2a, glob->st2b, table2);