Mercurial > libavformat.hg
diff avio.c @ 3973:549a09cf23fe libavformat
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.
author | diego |
---|---|
date | Fri, 03 Oct 2008 10:16:29 +0000 |
parents | b140b68a3747 |
children | 4d5d9ac28e21 |
line wrap: on
line diff
--- a/avio.c Thu Oct 02 21:15:48 2008 +0000 +++ b/avio.c Fri Oct 03 10:16:29 2008 +0000 @@ -153,9 +153,9 @@ return ret; } -offset_t url_seek(URLContext *h, offset_t pos, int whence) +int64_t url_seek(URLContext *h, int64_t pos, int whence) { - offset_t ret; + int64_t ret; if (!h->prot->url_seek) return AVERROR(EPIPE); @@ -183,9 +183,9 @@ return 1; } -offset_t url_filesize(URLContext *h) +int64_t url_filesize(URLContext *h) { - offset_t pos, size; + int64_t pos, size; size= url_seek(h, 0, AVSEEK_SIZE); if(size<0){ @@ -228,7 +228,7 @@ return h->prot->url_read_pause(h, pause); } -offset_t av_url_read_seek(URLContext *h, +int64_t av_url_read_seek(URLContext *h, int stream_index, int64_t timestamp, int flags) { if (!h->prot->url_read_seek)