From b551204a96cb5b525d19082aba215320f9ad6dc7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Sun, 24 Oct 2004 22:32:40 +0000 Subject: [PATCH] stdin detection fix Originally committed as revision 3633 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 02081273ee9..3b8a274d444 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2766,7 +2766,7 @@ static void opt_input_file(const char *filename) if (!strcmp(filename, "-")) filename = "pipe:"; - using_stdin |= !strcmp(filename, "pipe:" ) || + using_stdin |= !strncmp(filename, "pipe:", 5) || !strcmp( filename, "/dev/stdin" ); /* get default parameters from command line */ -- GitLab