Lines Matching refs:atom_size
436 uint64_t atom_size = 0;
472 atom_size = BE_32(&atom_bytes[0]);
477 if (atom_size > MAX_FTYP_ATOM_SIZE) {
479 atom_size);
482 ftyp_atom_size = atom_size;
487 atom_size);
491 fread(ftyp_atom, atom_size, 1, infile) != 1 ||
499 if (atom_size == 1) {
503 atom_size = BE_64(&atom_bytes[0]);
504 ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE * 2, SEEK_CUR);
506 ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
519 atom_size);
533 atom_offset += atom_size;
538 if (atom_size < 8)
542 moov_size = atom_size;
545 free_size += atom_size;
547 atom_size = moov_size;
558 if (atom_size < 16) {
565 if (fseeko(infile, -(atom_size + free_size), SEEK_END)) {
574 moov_atom_size = atom_size;
577 fprintf(stderr, "could not allocate %"PRIu64" bytes for moov atom\n", atom_size);
580 if (fread(moov_atom, atom_size, 1, infile) != 1) {