Message ID | 102c9967-d9ec-4660-8f13-24031a5c0e0e@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] Allow using stdin_interaction with pipe's | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
--- fftools/ffmpeg_demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 791952f120..00d7747c3c 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1379,7 +1379,7 @@ int ifile_open(const OptionsContext *o, const char *filename) if (!strcmp(filename, "-")) filename = "fd:"; - stdin_interaction &= strncmp(filename, "pipe:", 5) && + stdin_interaction &= strcmp(filename, "pipe:0") && strcmp(filename, "fd:") && strcmp(filename, "/dev/stdin");
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 791952f120..00d7747c3c 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1379,7 +1379,7 @@ int ifile_open(const OptionsContext *o, const char *filename) if (!strcmp(filename, "-")) filename = "fd:"; - stdin_interaction &= strncmp(filename, "pipe:", 5) && + stdin_interaction &= strcmp(filename, "pipe:0") && strcmp(filename, "fd:") && strcmp(filename, "/dev/stdin"); -- 2.32.0.windows.1
Signed-off-by: Ali Saki <3alisaki@gmail.com> --- fftools/ffmpeg_demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)