diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-11-19 19:08:56 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-11-19 19:08:56 +0000 |
commit | b242baa411976134d950d8106aa86a6e2a7eb3c9 (patch) | |
tree | db9604026f6ea9f0998a04d5b067f85195fc17a6 /ffmpeg.c | |
parent | 7feb950a80c4d1769aa8611d010581e2bc712794 (diff) | |
download | ffmpeg-b242baa411976134d950d8106aa86a6e2a7eb3c9.tar.gz |
'-' 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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1815,6 +1815,9 @@ void opt_input_file(const char *filename) AVFormatParameters params, *ap = ¶ms; 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; |