]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_find_rect: Remove assert
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Jan 2020 19:45:07 +0000 (20:45 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 27 Jan 2020 11:01:42 +0000 (12:01 +0100)
A score of 0 is possible
Fixes: Ticket8500
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_find_rect.c

index 458252a7ba66f05cc2e80299630704a2effe5026..706e59cefe831ef40e19d146ef0cc9289e4d37b7 100644 (file)
@@ -22,7 +22,6 @@
  * @todo switch to dualinput
  */
 
-#include "libavutil/avassert.h"
 #include "libavutil/imgutils.h"
 #include "libavutil/opt.h"
 #include "internal.h"
@@ -169,7 +168,6 @@ static float search(FOCContext *foc, int pass, int maxpass, int xmin, int xmax,
     for (y = ymin; y <= ymax; y++) {
         for (x = xmin; x <= xmax; x++) {
             float score = compare(foc->haystack_frame[pass], foc->needle_frame[pass], x, y);
-            av_assert0(score != 0);
             if (score < best_score) {
                 best_score = score;
                 *best_x = x;