Commit 06f4f0d6 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_find_rect: Remove assert

A score of 0 is possible
Fixes: Ticket8500
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Reviewed-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit dfc47148)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent db848761
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
* @todo switch to dualinput * @todo switch to dualinput
*/ */
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "internal.h" #include "internal.h"
...@@ -169,7 +168,6 @@ static float search(FOCContext *foc, int pass, int maxpass, int xmin, int xmax, ...@@ -169,7 +168,6 @@ static float search(FOCContext *foc, int pass, int maxpass, int xmin, int xmax,
for (y = ymin; y <= ymax; y++) { for (y = ymin; y <= ymax; y++) {
for (x = xmin; x <= xmax; x++) { for (x = xmin; x <= xmax; x++) {
float score = compare(foc->haystack_frame[pass], foc->needle_frame[pass], x, y); float score = compare(foc->haystack_frame[pass], foc->needle_frame[pass], x, y);
av_assert0(score != 0);
if (score < best_score) { if (score < best_score) {
best_score = score; best_score = score;
*best_x = x; *best_x = x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment