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 = ¶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;