diff mbox series

[FFmpeg-devel] Allow using stdin_interaction with pipe's

Message ID 102c9967-d9ec-4660-8f13-24031a5c0e0e@gmail.com
State New
Headers show
Series [FFmpeg-devel] Allow using stdin_interaction with pipe's | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch

Commit Message

علی ساکی Dec. 3, 2023, 8:16 p.m. UTC
Signed-off-by: Ali Saki <3alisaki@gmail.com>
---
  fftools/ffmpeg_demux.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Comments

علی ساکی Dec. 3, 2023, 9:10 p.m. UTC | #1
---
  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 mbox series

Patch

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