[Ffmpeg-cvslog] CVS: ffmpeg qt-faststart.c,1.2,1.3

Baptiste Coudurier CVS bcoudurier
Thu Mar 16 01:14:19 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv20901

Modified Files:
	qt-faststart.c 
Log Message:
use fseeko and ftello to be 64 bit offsets compliant

Index: qt-faststart.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/qt-faststart.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- qt-faststart.c	20 Jul 2004 03:40:45 -0000	1.2
+++ qt-faststart.c	16 Mar 2006 00:14:17 -0000	1.3
@@ -118,9 +118,9 @@
                 break;
             }
             atom_size = BE_64(&atom_bytes[0]);
-            fseek(infile, atom_size - ATOM_PREAMBLE_SIZE * 2, SEEK_CUR);
+            fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE * 2, SEEK_CUR);
         } else {
-            fseek(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
+            fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
         }
     }
 
@@ -132,8 +132,8 @@
 
     /* moov atom was, in fact, the last atom in the chunk; load the whole
      * moov atom */
-    fseek(infile, -atom_size, SEEK_END);
-    last_offset = (uint64_t)ftell(infile);
+    fseeko(infile, -atom_size, SEEK_END);
+    last_offset = ftello(infile);
     moov_atom_size = atom_size;
     moov_atom = malloc(moov_atom_size);
     if (!moov_atom) {





More information about the ffmpeg-cvslog mailing list