From 7352c370faa793f897f44d48e7ddc11a4f11bf92 Mon Sep 17 00:00:00 2001 From: Linjie Fu Date: Mon, 30 Aug 2021 21:26:31 +0800 Subject: [PATCH] Revert "fftools/ffmpeg_filter: fix the flags parsing for scaler" This reverts commit b3a0548a981db52911dd34d9de254c4fee0a8f79. This breaks the usage of swscale options, scale_sws_opts should be passed to auto-inserted scale-filters. Signed-off-by: Linjie Fu --- fftools/ffmpeg_filter.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 67ae2dc824..21d54cc8ae 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -983,11 +983,7 @@ int configure_filtergraph(FilterGraph *fg) } if (strlen(args)) { args[strlen(args)-1] = 0; - - if (!strncmp(args, "sws_flags=", 10)) { - // keep the 'flags=' part - fg->graph->scale_sws_opts = av_strdup(args+4); - } + fg->graph->scale_sws_opts = av_strdup(args); } args[0] = 0;