[FFmpeg-devel] [PATCH 2/2] tests/audiomatch: Reduce search window

Michael Niedermayer michael at niedermayer.cc
Tue Mar 22 13:43:47 CET 2016


This avoids unneeded computations

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 tests/audiomatch.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/audiomatch.c b/tests/audiomatch.c
index e2d6c55..9752f68 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;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list