summaryrefslogtreecommitdiffstats
path: root/qt-faststart.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-16 00:14:17 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-16 00:14:17 +0000
commite2daf554652a49ee917aab02ce67d2202e918e07 (patch)
treedda6321a4e143ba32795942472b34f018f314d2c /qt-faststart.c
parent023857be705f9032f22ab4479abcc5484773a6cd (diff)
downloadffmpeg-streaming-e2daf554652a49ee917aab02ce67d2202e918e07.zip
ffmpeg-streaming-e2daf554652a49ee917aab02ce67d2202e918e07.tar.gz
use fseeko and ftello to be 64 bit offsets compliant
Originally committed as revision 5167 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'qt-faststart.c')
-rw-r--r--qt-faststart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-faststart.c b/qt-faststart.c
index e191253..4177f32 100644
--- a/qt-faststart.c
+++ b/qt-faststart.c
@@ -118,9 +118,9 @@ int main(int argc, char *argv[])
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 @@ int main(int argc, char *argv[])
/* 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) {
OpenPOWER on IntegriCloud