'-' can be used for standard input

Originally committed as revision 1232 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Fabrice Bellard 22 years ago
parent 7feb950a80
commit b242baa411
  1. 3
      ffmpeg.c

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

Loading…
Cancel
Save