diff mbox series

[FFmpeg-devel,1/2] libavfilter/vf_dnn_detect: Fix a control flow issue

Message ID 20231218063605.558558-1-wenbin.chen@intel.com
State Accepted
Commit 233c44f735faec193150f852d558aef7c4683b3b
Headers show
Series [FFmpeg-devel,1/2] libavfilter/vf_dnn_detect: Fix a control flow issue | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Chen, Wenbin Dec. 18, 2023, 6:36 a.m. UTC
From: Wenbin Chen <wenbin.chen@intel.com>

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
---
 libavfilter/vf_dnn_detect.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Xiang, Haihao Dec. 18, 2023, 6:52 a.m. UTC | #1
On Ma, 2023-12-18 at 14:36 +0800, wenbin.chen-at-intel.com@ffmpeg.org wrote:
> From: Wenbin Chen <wenbin.chen@intel.com>
> 
> Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
> ---
>  libavfilter/vf_dnn_detect.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> 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;
>  }

LGTM,

- Haihao
diff mbox series

Patch

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