diff options
author | Wenbin Chen <wenbin.chen@intel.com> | 2024-04-02 16:13:05 +0800 |
---|---|---|
committer | Guo Yejun <yejun.guo@intel.com> | 2024-04-04 14:26:52 +0800 |
commit | 8869f5ce864f197f3192c1660124e64da3f26989 (patch) | |
tree | 59aa4d443d4f6031ed514c5bec9aef0f8081aaf1 | |
parent | 9309b5bc64a9c18eb5973953532ef6029be384de (diff) | |
download | ffmpeg-8869f5ce864f197f3192c1660124e64da3f26989.tar.gz |
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>
-rw-r--r-- | libavfilter/dnn/dnn_backend_openvino.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index bedf983f8f..374f21b7a1 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b/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; } |