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:
parent
7feb950a80
commit
b242baa411
3
ffmpeg.c
3
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;
|
||||
|
Loading…
Reference in New Issue
Block a user