Message ID | tencent_4126EB27D52A8193215C618B99662490AD06@qq.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,v2,1/3] avformat/file: add fd protocol | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
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 */
From: Zhao Zhili <zhilizhao@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(-)