diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-04-04 12:49:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-09 10:34:18 +0200 |
commit | 243a51490a85923c29ea9c276786e7b7d29cff0d (patch) | |
tree | 45853e9fdc4b9757b4dbed219206433f5a662a90 /fftools/ffmpeg.c | |
parent | d74cbcb9635f1c94f990dae4988a060ec6494f34 (diff) | |
download | ffmpeg-243a51490a85923c29ea9c276786e7b7d29cff0d.tar.gz |
fftools/ffmpeg_filter: only store complex filtergraphs in global array
Store simple filtergraphs in the stream they feed. Keeping the two
separate will be useful in following commits.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 0ee76d69b5..1f50ed6805 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -787,6 +787,11 @@ static int check_keyboard_interaction(int64_t cur_time) (n = sscanf(buf, "%63[^ ] %lf %255[^ ] %255[^\n]", target, &time, command, arg)) >= 3) { av_log(NULL, AV_LOG_DEBUG, "Processing command target:%s time:%f command:%s arg:%s", target, time, command, arg); + for (OutputStream *ost = ost_iter(NULL); ost; ost = ost_iter(ost)) { + if (ost->fg_simple) + fg_send_command(ost->fg_simple, time, target, command, arg, + key == 'C'); + } for (i = 0; i < nb_filtergraphs; i++) fg_send_command(filtergraphs[i], time, target, command, arg, key == 'C'); |