tests/audiomatch: Reduce search window

This avoids unneeded computations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-03-22 12:21:27 +01:00
parent c7b983249a
commit b3ec5b00ce
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ int main(int argc, char **argv){
c += signal[i] * data[j]; c += signal[i] * data[j];
} }
if(fabs(c) > sigamp * 0.94) if(fabs(c) > sigamp * 0.94)
maxshift = FFMIN(maxshift, fabs(pos)+128); maxshift = FFMIN(maxshift, fabs(pos)+32);
if(fabs(c)>fabs(bestc)){ if(fabs(c)>fabs(bestc)){
bestc= c; bestc= c;
bestpos = pos; bestpos = pos;