diff mbox series

[FFmpeg-devel] Fix for Incorrect Parameter in ff_filter_config_links Function Call

Message ID 20240308115912.973-1-admin@shaoxia.xyz
State Accepted
Commit e6d933404ff1085b6c4ec031f736b1bee6e46b57
Headers show
Series [FFmpeg-devel] Fix for Incorrect Parameter in ff_filter_config_links Function Call | expand

Checks

Context Check Description
yinshiyou/commit_msg_loongarch64 warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/commit_msg_x86 warning The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ".
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

admin@shaoxia.xyz March 8, 2024, 11:59 a.m. UTC
From: 联盟少侠 <admin@shaoxia.xyz>

src/libavfilter/internal.h:255:45: note: passing argument to parameter 'filter' here
int ff_filter_config_links(AVFilterContext *filter);
---
 libavfilter/avfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Rheinhardt March 8, 2024, 12:19 p.m. UTC | #1
admin@shaoxia.xyz:
> From: 联盟少侠 <admin@shaoxia.xyz>
> 
> src/libavfilter/internal.h:255:45: note: passing argument to parameter 'filter' here
> int ff_filter_config_links(AVFilterContext *filter);
> ---
>  libavfilter/avfilter.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index 596a139..c323ebb 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -214,7 +214,7 @@ void avfilter_link_free(AVFilterLink **link)
>  }
>  int avfilter_config_links(AVFilterContext *filter)
>  {
> -    return ff_filter_config_links(EINVAL);
> +    return ff_filter_config_links(filter);
>  }
>  #endif
>  

Applied with a reworded commit title. Thanks.

- Andreas
diff mbox series

Patch

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 596a139..c323ebb 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -214,7 +214,7 @@  void avfilter_link_free(AVFilterLink **link)
 }
 int avfilter_config_links(AVFilterContext *filter)
 {
-    return ff_filter_config_links(EINVAL);
+    return ff_filter_config_links(filter);
 }
 #endif