Commit b242baa4 authored by Fabrice Bellard's avatar Fabrice Bellard
Browse files

'-' can be used for standard input

Originally committed as revision 1232 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7feb950a
...@@ -1815,6 +1815,9 @@ void opt_input_file(const char *filename) ...@@ -1815,6 +1815,9 @@ void opt_input_file(const char *filename)
AVFormatParameters params, *ap = &params; AVFormatParameters params, *ap = &params;
int err, i, ret, rfps; int err, i, ret, rfps;
if (!strcmp(filename, "-"))
filename = "pipe:";
/* get default parameters from command line */ /* get default parameters from command line */
memset(ap, 0, sizeof(*ap)); memset(ap, 0, sizeof(*ap));
ap->sample_rate = audio_sample_rate; ap->sample_rate = audio_sample_rate;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment