libavfilter/dnn_backend_openvino: Check bbox's height

Check bbox's height with frame's height rather than frame's width.

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Reviewed-by: Guo Yejun <yejun.guo@intel.com>
release/7.1
Wenbin Chen 10 months ago committed by Guo Yejun
parent 9309b5bc64
commit 8869f5ce86
  1. 2
      libavfilter/dnn/dnn_backend_openvino.c

@ -1199,7 +1199,7 @@ static int contain_valid_detection_bbox(AVFrame *frame)
if (bbox->x < 0 || bbox->w < 0 || bbox->x + bbox->w >= frame->width) {
return 0;
}
if (bbox->y < 0 || bbox->h < 0 || bbox->y + bbox->h >= frame->width) {
if (bbox->y < 0 || bbox->h < 0 || bbox->y + bbox->h >= frame->height) {
return 0;
}

Loading…
Cancel
Save