diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-10-03 10:16:29 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-10-03 10:16:29 +0000 |
commit | bc5c918ea8757514de0ec0327066251a2f1ec23f (patch) | |
tree | 81bdb2bd95adf7002bc895eec401c7badf36816e /libavformat/http.c | |
parent | 0c45cd0720cdf2415a93ef63475690faf68364c2 (diff) | |
download | ffmpeg-bc5c918ea8757514de0ec0327066251a2f1ec23f.tar.gz |
Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.
Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index fc9cac442d..6b3004d75c 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -41,7 +41,7 @@ typedef struct { unsigned char buffer[BUFFER_SIZE], *buf_ptr, *buf_end; int line_count; int http_code; - offset_t off, filesize; + int64_t off, filesize; char location[URL_SIZE]; } HTTPContext; @@ -213,7 +213,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr, char line[1024], *q; char *auth_b64; int auth_b64_len = strlen(auth)* 4 / 3 + 12; - offset_t off = s->off; + int64_t off = s->off; /* send http header */ @@ -316,11 +316,11 @@ static int http_close(URLContext *h) return 0; } -static offset_t http_seek(URLContext *h, offset_t off, int whence) +static int64_t http_seek(URLContext *h, int64_t off, int whence) { HTTPContext *s = h->priv_data; URLContext *old_hd = s->hd; - offset_t old_off = s->off; + int64_t old_off = s->off; if (whence == AVSEEK_SIZE) return s->filesize; |