[FFmpeg-devel] av_open_input_file

Fabrizio Milo aka misto mistobaan
Sat Dec 11 01:43:56 CET 2010


I think I found another glitch in the avio.o pipe

diff --git a/libavformat/file.c b/libavformat/file.c
index 3c3f42f..9e22e4e 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -112,7 +112,10 @@ static int pipe_open(URLContext *h, const char
*filename, int flags)
 {
     int fd;
     char *final;
-    av_strstart(filename, "pipe:", &filename);
+    if ( !av_strstart(filename, "pipe:", &filename) )
+    {
+        return AVERROR(ENOSYS);
+    }

     fd = strtol(filename, &final, 10);
     if((filename == final) || *final ) {/* No digits found, or
something like 10ab */



More information about the ffmpeg-devel mailing list