mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
9309b5bc64
commit
8869f5ce86
|
@ -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…
Reference in New Issue