Revision 59006372 libavcodec/svq1.c

View differences:

libavcodec/svq1.c
992 992

  
993 993
            for(i=0; i<16; i++){
994 994
                int sum= codebook_sum[stage*16 + i];
995
                int sqr=0;
996
                int diff, mean, score;
995
                int sqr, diff, mean, score;
997 996

  
998 997
                vector = codebook + stage*size*16 + i*size;
999

  
1000
                for(j=0; j<size; j++){
1001
                    int v= vector[j];
1002
                    sqr += (v - block[stage][j])*(v - block[stage][j]);
1003
                }
998
                sqr = s->dsp.ssd_int8_vs_int16(vector, block[stage], size);
1004 999
                diff= block_sum[stage] - sum;
1005 1000
                mean= (diff + (size>>1)) >> (level+3);
1006 1001
                assert(mean >-300 && mean<300);

Also available in: Unified diff