Browse Source

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 dfc4714886)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0.6
Michael Niedermayer 5 years ago
parent
commit
fc797858a7
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavfilter/vf_find_rect.c

+ 0
- 2
libavfilter/vf_find_rect.c View 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;


Loading…
Cancel
Save