[FFmpeg-devel] [PATCH 22/38] avfilter/avfilter: Remove unused count

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sun Sep 12 13:53:20 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavfilter/avfilter.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index a04f8ed62f..c614eb0740 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -812,7 +812,7 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
                            const char *args)
 {
     const AVOption *o = NULL;
-    int ret, count = 0;
+    int ret;
     char *av_uninit(parsed_key), *av_uninit(value);
     const char *key;
     int offset= -1;
@@ -875,10 +875,9 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
 
         av_free(value);
         av_free(parsed_key);
-        count++;
     }
 
-    return count;
+    return 0;
 }
 
 int ff_filter_process_command(AVFilterContext *ctx, const char *cmd,
-- 
2.30.2



More information about the ffmpeg-devel mailing list