Commit 8869f5ce authored by Wenbin Chen's avatar Wenbin Chen Committed by Guo Yejun

libavfilter/dnn_backend_openvino: Check bbox's height

Check bbox's height with frame's height rather than frame's width.
Signed-off-by: 's avatarWenbin Chen <wenbin.chen@intel.com>
Reviewed-by: 's avatarGuo Yejun <yejun.guo@intel.com>
parent 9309b5bc
......@@ -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;
}
......
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