mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
use fseeko and ftello to be 64 bit offsets compliant
Originally committed as revision 5167 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
023857be70
commit
e2daf55465
@ -118,9 +118,9 @@ int main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
atom_size = BE_64(&atom_bytes[0]);
|
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 {
|
} 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 was, in fact, the last atom in the chunk; load the whole
|
||||||
* moov atom */
|
* moov atom */
|
||||||
fseek(infile, -atom_size, SEEK_END);
|
fseeko(infile, -atom_size, SEEK_END);
|
||||||
last_offset = (uint64_t)ftell(infile);
|
last_offset = ftello(infile);
|
||||||
moov_atom_size = atom_size;
|
moov_atom_size = atom_size;
|
||||||
moov_atom = malloc(moov_atom_size);
|
moov_atom = malloc(moov_atom_size);
|
||||||
if (!moov_atom) {
|
if (!moov_atom) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user