'-' can be used for standard input
authorFabrice Bellard <fabrice@bellard.org>
Tue, 19 Nov 2002 19:08:56 +0000 (19:08 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Tue, 19 Nov 2002 19:08:56 +0000 (19:08 +0000)
Originally committed as revision 1232 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index af0a3cc78c5ab2a006c8f68fcaab5007e38c5e2b..f6c7f7017dc34d09565b87f1cea3b4427603741c 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1815,6 +1815,9 @@ void opt_input_file(const char *filename)
     AVFormatParameters params, *ap = &params;
     int err, i, ret, rfps;
 
+    if (!strcmp(filename, "-"))
+        filename = "pipe:";
+
     /* get default parameters from command line */
     memset(ap, 0, sizeof(*ap));
     ap->sample_rate = audio_sample_rate;