From: Zhao Zhili <zhiliz...@tencent.com> Disable stdin interaction for pipe and fd protocols only if the file descriptor is explicitly or implicitly setting to zero. --- fftools/ffmpeg_demux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index e845e6784d..57695c25a3 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -885,7 +885,10 @@ int ifile_open(const OptionsContext *o, const char *filename) if (!strcmp(filename, "-")) filename = "pipe:"; - stdin_interaction &= strncmp(filename, "pipe:", 5) && + stdin_interaction &= strcmp(filename, "pipe:") && + strcmp(filename, "pipe:0") && + strcmp(filename, "fd:") && + strcmp(filename, "fd:0") && strcmp(filename, "/dev/stdin"); /* get default parameters from command line */ -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".