libavfilter/vf_dnn_detect: Fix a control flow issue

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
Wenbin Chen 2023-12-18 14:36:04 +08:00 committed by Haihao Xiang
parent 6d5fbea289
commit 233c44f735
1 changed files with 2 additions and 0 deletions

View File

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