aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-10-03 10:16:29 +0000
committerDiego Biurrun <diego@biurrun.de>2008-10-03 10:16:29 +0000
commitbc5c918ea8757514de0ec0327066251a2f1ec23f (patch)
tree81bdb2bd95adf7002bc895eec401c7badf36816e /libavformat/oggenc.c
parent0c45cd0720cdf2415a93ef63475690faf68364c2 (diff)
downloadffmpeg-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/oggenc.c')
-rw-r--r--libavformat/oggenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 9233c72ad0..b3f1b9f253 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -36,9 +36,9 @@ typedef struct {
int eos;
} OGGStreamContext;
-static void ogg_update_checksum(AVFormatContext *s, offset_t crc_offset)
+static void ogg_update_checksum(AVFormatContext *s, int64_t crc_offset)
{
- offset_t pos = url_ftell(s->pb);
+ int64_t pos = url_ftell(s->pb);
uint32_t checksum = get_checksum(s->pb);
url_fseek(s->pb, crc_offset, SEEK_SET);
put_be32(s->pb, checksum);
@@ -49,7 +49,7 @@ static int ogg_write_page(AVFormatContext *s, const uint8_t *data, int size,
int64_t granule, int stream_index, int flags)
{
OGGStreamContext *oggstream = s->streams[stream_index]->priv_data;
- offset_t crc_offset;
+ int64_t crc_offset;
int page_segments, i;
if (size >= 255*255) {