• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/minidlna/tagutils/

Lines Matching refs:infile

237 _aac_check_extended_descriptor(FILE *infile)
242 if( fread((void *)&buf, 1, 3, infile) < 3 )
250 fseek(infile, -3, SEEK_CUR);
262 FILE *infile;
276 infile = fopen(file, "rb");
277 if(!infile)
283 fseek(infile, 0, SEEK_END);
284 file_size = ftell(infile);
285 fseek(infile, 0, SEEK_SET);
288 atom_offset = _aac_lookforatom(infile, "moov:mvhd", (unsigned int*)&atom_length);
291 fseek(infile, 12, SEEK_CUR);
292 if(fread((void*)&sample_size, 1, sizeof(int), infile) != sizeof(int) ||
293 fread((void*)&samples, 1, sizeof(int), infile) != sizeof(int))
295 fclose(infile);
317 atom_offset = _aac_lookforatom(infile, "moov:trak:mdia:minf:stbl:stsd:alac", (unsigned int*)&atom_length);
319 fseek(infile, atom_offset + 32, SEEK_SET);
320 if (fread(buffer, sizeof(unsigned char), 2, infile) == 2)
326 atom_offset = _aac_lookforatom(infile, "moov:trak:mdia:minf:stbl:stsd:mp4a", (unsigned int*)&atom_length);
329 fseek(infile, atom_offset + 32, SEEK_SET);
330 if(fread(buffer, sizeof(unsigned char), 2, infile) == 2)
333 fseek(infile, 2, SEEK_CUR);
336 atom_offset = _aac_findatom(infile, atom_length - (ftell(infile) - atom_offset), "esds", &atom_length);
341 fseek(infile, atom_offset + 4, SEEK_CUR);
343 if( !fread((void *)&buffer, 1, 1, infile) || (buffer[0] != 0x03) || (_aac_check_extended_descriptor(infile) != 0) )
345 fseek(infile, 4, SEEK_CUR);
346 if( !fread((void *)&buffer, 1, 1, infile) || (buffer[0] != 0x04) || (_aac_check_extended_descriptor(infile) != 0) )
348 fseek(infile, 10, SEEK_CUR); // 10 bytes into section 4 should be average bitrate. max bitrate is 6 bytes in.
349 if(fread((void *)&bitrate, sizeof(unsigned int), 1, infile))
351 if( !fread((void *)&buffer, 1, 1, infile) || (buffer[0] != 0x05) || (_aac_check_extended_descriptor(infile) != 0) )
353 fseek(infile, 1, SEEK_CUR); // 1 bytes into section 5 should be the setup data
354 if(fread((void *)&buffer, 2, 1, infile))
365 atom_offset = _aac_lookforatom(infile, "mdat", (unsigned int*)&atom_length);
411 fclose(infile);