X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ffile.c;h=e50168d89e8f8917bef4a8535c076a6abbf8177d;hb=79ab96bafd3b0585c388d924c74a6f88c0447550;hp=6285c1bba2b322b3d15b4a73633b28e3bf47f59b;hpb=a5e979f42cd92136de00761d4e5ca3b4079a3207;p=ffmpeg diff --git a/libavformat/file.c b/libavformat/file.c index 6285c1bba2b..e50168d89e8 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -18,8 +18,9 @@ * 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 @@ -66,7 +67,7 @@ static int file_write(URLContext *h, unsigned char *buf, int size) } /* XXX: use llseek */ -static offset_t file_seek(URLContext *h, offset_t pos, int whence) +static int64_t file_seek(URLContext *h, int64_t pos, int whence) { int fd = (size_t)h->priv_data; return lseek(fd, pos, whence); @@ -92,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);