1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Revert "fftools/ffmpeg_filter: fix the flags parsing for scaler"

This reverts commit b3a0548a98.

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>
This commit is contained in:
Linjie Fu 2021-08-30 21:26:31 +08:00 committed by Linjie Fu
parent 4de4bc06fd
commit 7352c370fa

View File

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