[SCM] libav/experimental: '-' can be used for standard input

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:34:15 UTC 2013


The following commit has been merged in the experimental branch:
commit b242baa411976134d950d8106aa86a6e2a7eb3c9
Author: Fabrice Bellard <fabrice at bellard.org>
Date:   Tue Nov 19 19:08:56 2002 +0000

    '-' can be used for standard input
    
    Originally committed as revision 1232 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index af0a3cc..f6c7f70 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list