diff avidec.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 1d3d17de20ba
children 38269a4cfe68
line wrap: on
line diff
--- a/avidec.c	Thu Oct 02 21:15:48 2008 +0000
+++ b/avidec.c	Fri Oct 03 10:16:29 2008 +0000
@@ -51,7 +51,7 @@
     int64_t  riff_end;
     int64_t  movi_end;
     int64_t  fsize;
-    offset_t movi_list;
+    int64_t movi_list;
     int index_loaded;
     int is_odml;
     int non_interleaved;
@@ -217,7 +217,7 @@
 
 static int avi_read_tag(ByteIOContext *pb, char *buf, int maxlen,  unsigned int size)
 {
-    offset_t i = url_ftell(pb);
+    int64_t i = url_ftell(pb);
     size += (size & 1);
     get_strz(pb, buf, maxlen);
     url_fseek(pb, i+size, SEEK_SET);
@@ -619,7 +619,7 @@
     AVIContext *avi = s->priv_data;
     ByteIOContext *pb = s->pb;
     int n, d[8], size;
-    offset_t i, sync;
+    int64_t i, sync;
     void* dstr;
 
     if (ENABLE_DV_DEMUXER && avi->dv_demux) {
@@ -937,7 +937,7 @@
     AVIContext *avi = s->priv_data;
     ByteIOContext *pb = s->pb;
     uint32_t tag, size;
-    offset_t pos= url_ftell(pb);
+    int64_t pos= url_ftell(pb);
 
     url_fseek(pb, avi->movi_end, SEEK_SET);
 #ifdef DEBUG_SEEK