diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-22 12:21:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-30 03:37:56 +0200 |
commit | b3ec5b00ce6ef911838010497e7da7ce010f3192 (patch) | |
tree | 5468b6b0facb1307147dcf38e0408485bad95fdc | |
parent | c7b983249aa46acf4b64515c5e61f3392706352a (diff) | |
download | ffmpeg-b3ec5b00ce6ef911838010497e7da7ce010f3192.tar.gz |
tests/audiomatch: Reduce search window
This avoids unneeded computations
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | tests/audiomatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/audiomatch.c b/tests/audiomatch.c index e2d6c5555f..9752f6819d 100644 --- a/tests/audiomatch.c +++ b/tests/audiomatch.c @@ -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; |