• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna/tagutils/

Lines Matching refs:infile

248 _aac_check_extended_descriptor(FILE *infile)
253 if( !fread((void *)&buf, 3, 1, infile) )
261 fseek(infile, -3, SEEK_CUR);
273 FILE *infile;
288 if(!(infile = fopen(file, "rb")))
294 fseek(infile, 0, SEEK_END);
295 file_size = ftell(infile);
296 fseek(infile, 0, SEEK_SET);
299 atom_offset = _aac_lookforatom(infile, "moov:mvhd", (unsigned int*)&atom_length);
302 fseek(infile, 8, SEEK_CUR);
303 fread((void *)&time, sizeof(int), 1, infile);
307 fread((void*)&sample_size, 1, sizeof(int), infile);
308 fread((void*)&samples, 1, sizeof(int), infile);
328 atom_offset = _aac_lookforatom(infile, "moov:trak:mdia:minf:stbl:stsd:alac", (unsigned int*)&atom_length);
330 fseek(infile, atom_offset + 32, SEEK_SET);
331 fread(buffer, sizeof(unsigned char), 2, infile);
338 atom_offset = _aac_lookforatom(infile, "moov:trak:mdia:minf:stbl:stsd:mp4a", (unsigned int*)&atom_length);
341 fseek(infile, atom_offset + 32, SEEK_SET);
342 fread(buffer, sizeof(unsigned char), 2, infile);
346 fseek(infile, 2, SEEK_CUR);
349 atom_offset = _aac_findatom(infile, atom_length - (ftell(infile) - atom_offset), "esds", &atom_length);
354 fseek(infile, atom_offset + 4, SEEK_CUR);
356 fread((void *)&buffer, 1, 1, infile);
357 if( (buffer[0] != 0x03) || (_aac_check_extended_descriptor(infile) != 0) )
359 fseek(infile, 4, SEEK_CUR);
360 fread((void *)&buffer, 1, 1, infile);
361 if( (buffer[0] != 0x04) || (_aac_check_extended_descriptor(infile) != 0) )
363 fseek(infile, 10, SEEK_CUR); // 10 bytes into section 4 should be average bitrate. max bitrate is 6 bytes in.
364 fread((void *)&bitrate, sizeof(unsigned int), 1, infile);
366 fread((void *)&buffer, 1, 1, infile);
367 if( (buffer[0] != 0x05) || (_aac_check_extended_descriptor(infile) != 0) )
369 fseek(infile, 1, SEEK_CUR); // 1 bytes into section 5 should be the setup data
370 fread((void *)&buffer, 2, 1, infile);
379 atom_offset = _aac_lookforatom(infile, "mdat", (unsigned int*)&atom_length);
425 fclose(infile);