X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ffile.c;h=9640ff654e528c0736eb32217215308c49788eb8;hb=ff13ba92fd6bfee75db3d1e2f593474946cbfb68;hp=c0134d15dfce32faa9bb4a4f05d6135e585bffca;hpb=9e33b10fd784aaefae92253779c4e8a6c5efa547;p=ffmpeg diff --git a/libavformat/file.c b/libavformat/file.c index c0134d15dfc..9640ff654e5 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -18,12 +18,14 @@ * 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 #include #include #include +#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, };