[FFmpeg-cvslog] avfilter/vf_find_rect: Remove assert

Michael Niedermayer git at videolan.org
Fri Apr 24 02:13:18 EEST 2020


ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Sun Jan 26 20:45:07 2020 +0100| [06f4f0d61314f4abe45500419f1bd2a63cd32386] | committer: Michael Niedermayer

avfilter/vf_find_rect: Remove assert

A score of 0 is possible
Fixes: Ticket8500

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit dfc471488675aa257183745502d0074055db3bd2)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavfilter/vf_find_rect.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c
index 1a0e702583..236a0428b5 100644
--- a/libavfilter/vf_find_rect.c
+++ b/libavfilter/vf_find_rect.c
@@ -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;



More information about the ffmpeg-cvslog mailing list