aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-01-26 20:45:07 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-02 19:55:09 +0200
commitcb9ec725c31dc8d3a7e1fe165a8dbdcc1ec4e935 (patch)
tree7360d903407fe9e174714256f2bd6455ea20b00e
parentbd8633d4d3e194a7b018ae081674b4f06890013a (diff)
downloadffmpeg-cb9ec725c31dc8d3a7e1fe165a8dbdcc1ec4e935.tar.gz
avfilter/vf_find_rect: Remove assert
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> (cherry picked from commit dfc471488675aa257183745502d0074055db3bd2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_find_rect.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vf_find_rect.c b/libavfilter/vf_find_rect.c
index 458252a7ba..706e59cefe 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;