aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenbin Chen <wenbin.chen@intel.com>2023-12-18 14:36:04 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2023-12-21 16:15:23 +0800
commit233c44f735faec193150f852d558aef7c4683b3b (patch)
treec276ec5870758fbd7f25128b3bc5896a667c96d5
parent6d5fbea2895b3cabd9edf7059a19f9b799e0e2a2 (diff)
downloadffmpeg-233c44f735faec193150f852d558aef7c4683b3b.tar.gz
libavfilter/vf_dnn_detect: Fix a control flow issue
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
-rw-r--r--libavfilter/vf_dnn_detect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c
index fcc64118b6..52d5c3d798 100644
--- a/libavfilter/vf_dnn_detect.c
+++ b/libavfilter/vf_dnn_detect.c
@@ -455,11 +455,13 @@ static int dnn_detect_post_proc_ov(AVFrame *frame, DNNData *output, int nb_outpu
ret = dnn_detect_post_proc_yolo(frame, output, filter_ctx);
if (ret < 0)
return ret;
+ break;
case DDMT_YOLOV3:
case DDMT_YOLOV4:
ret = dnn_detect_post_proc_yolov3(frame, output, filter_ctx, nb_outputs);
if (ret < 0)
return ret;
+ break;
}
return 0;
}