1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

'-' can be used for standard input

Originally committed as revision 1232 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2002-11-19 19:08:56 +00:00
parent 7feb950a80
commit b242baa411

View File

@ -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;