]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/file.c
Add dynamic payload handlers to rdt.c. These follow the same API as the ones
[ffmpeg] / libavformat / file.c
index c0134d15dfce32faa9bb4a4f05d6135e585bffca..9640ff654e528c0736eb32217215308c49788eb8 100644 (file)
  * License along with FFmpeg; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
+#include "libavutil/avstring.h"
 #include "avformat.h"
-#include "avstring.h"
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/time.h>
 #include <stdlib.h>
+#include "os_support.h"
 
 
 /* standard file protocol */
@@ -91,7 +93,7 @@ URLProtocol file_protocol = {
 static int pipe_open(URLContext *h, const char *filename, int flags)
 {
     int fd;
-    const char * final;
+    char *final;
     av_strstart(filename, "pipe:", &filename);
 
     fd = strtol(filename, &final, 10);
@@ -110,16 +112,9 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
     return 0;
 }
 
-static int pipe_close(URLContext *h)
-{
-    return 0;
-}
-
 URLProtocol pipe_protocol = {
     "pipe",
     pipe_open,
     file_read,
     file_write,
-    NULL,
-    pipe_close,
 };