Lines Matching refs:infile
432 FILE *infile = NULL; in main() local
460 infile = fopen(argv[1], "rb"); in main()
461 if (!infile) { in main()
468 while (!feof(infile)) { in main()
469 if (fread(atom_bytes, ATOM_PREAMBLE_SIZE, 1, infile) != 1) { in main()
490 if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) || in main()
491 fread(ftyp_atom, atom_size, 1, infile) != 1 || in main()
492 (start_offset = ftello(infile)) < 0) { in main()
500 if (fread(atom_bytes, ATOM_PREAMBLE_SIZE, 1, infile) != 1) { in main()
504 ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE * 2, SEEK_CUR); in main()
506 ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR); in main()
554 fclose(infile); in main()
565 if (fseeko(infile, -(atom_size + free_size), SEEK_END)) { in main()
569 last_offset = ftello(infile); in main()
580 if (fread(moov_atom, atom_size, 1, infile) != 1) { in main()
593 fclose(infile); in main()
594 infile = NULL; in main()
601 infile = fopen(argv[1], "rb"); in main()
602 if (!infile) { in main()
608 if (fseeko(infile, start_offset, SEEK_SET)) { in main()
649 if (fread(copy_buffer, bytes_to_copy, 1, infile) != 1) { in main()
660 fclose(infile); in main()
669 if (infile) in main()
670 fclose(infile); in main()