Mercurial > libavformat.hg
diff wav.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 | 1aa5e41ceaef |
| children | c3102b189cb6 |
line wrap: on
line diff
--- a/wav.c Thu Oct 02 21:15:48 2008 +0000 +++ b/wav.c Fri Oct 03 10:16:29 2008 +0000 @@ -23,8 +23,8 @@ #include "riff.h" typedef struct { - offset_t data; - offset_t data_end; + int64_t data; + int64_t data_end; int64_t minpts; int64_t maxpts; int last_duration; @@ -35,7 +35,7 @@ { WAVContext *wav = s->priv_data; ByteIOContext *pb = s->pb; - offset_t fmt, fact; + int64_t fmt, fact; put_tag(pb, "RIFF"); put_le32(pb, 0); /* file length */ @@ -88,7 +88,7 @@ { ByteIOContext *pb = s->pb; WAVContext *wav = s->priv_data; - offset_t file_size; + int64_t file_size; if (!url_is_streamed(s->pb)) { end_tag(pb, wav->data);
