summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-11-19 19:08:56 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-11-19 19:08:56 +0000
commitb242baa411976134d950d8106aa86a6e2a7eb3c9 (patch)
treedb9604026f6ea9f0998a04d5b067f85195fc17a6 /ffmpeg.c
parent7feb950a80c4d1769aa8611d010581e2bc712794 (diff)
'-' can be used for standard input
Originally committed as revision 1232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index af0a3cc78c..f6c7f7017d 100644
--- 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;