[FFmpeg-cvslog] tests/audiomatch: Reduce search window

Michael Niedermayer git at videolan.org
Wed Mar 30 04:28:15 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Mar 22 12:21:27 2016 +0100| [b3ec5b00ce6ef911838010497e7da7ce010f3192] | committer: Michael Niedermayer

tests/audiomatch: Reduce search window

This avoids unneeded computations

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3ec5b00ce6ef911838010497e7da7ce010f3192
---

 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;



More information about the ffmpeg-cvslog mailing list