From e2daf554652a49ee917aab02ce67d2202e918e07 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 16 Mar 2006 00:14:17 +0000 Subject: use fseeko and ftello to be 64 bit offsets compliant Originally committed as revision 5167 to svn://svn.ffmpeg.org/ffmpeg/trunk --- qt-faststart.c | 8 ++++---- 1 file 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) { -- cgit v1.1