Commit b3ec5b00 authored by Michael Niedermayer's avatar Michael Niedermayer

tests/audiomatch: Reduce search window

This avoids unneeded computations
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c7b98324
......@@ -100,7 +100,7 @@ int main(int argc, char **argv){
c += signal[i] * data[j];
}
if(fabs(c) > sigamp * 0.94)
maxshift = FFMIN(maxshift, fabs(pos)+128);
maxshift = FFMIN(maxshift, fabs(pos)+32);
if(fabs(c)>fabs(bestc)){
bestc= c;
bestpos = pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment