aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinjie Fu <fulinjie@zju.edu.cn>2021-08-30 21:26:31 +0800
committerLinjie Fu <linjie.justin.fu@gmail.com>2021-08-30 21:27:50 +0800
commit7352c370faa793f897f44d48e7ddc11a4f11bf92 (patch)
tree5bfd114e21a13ff573ccf850bf63b2840c9ca408
parent4de4bc06fdfd0383f3d9012c6557a38408a09d28 (diff)
downloadffmpeg-7352c370faa793f897f44d48e7ddc11a4f11bf92.tar.gz
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 <linjie.justin.fu@gmail.com>
-rw-r--r--fftools/ffmpeg_filter.c6
1 files changed, 1 insertions, 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;