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>
This commit is contained in:
Wenbin Chen 2024-04-02 16:13:05 +08:00 committed by Guo Yejun
parent 9309b5bc64
commit 8869f5ce86
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}