• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [coreAudio] Detecting corrupted files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreAudio] Detecting corrupted files


  • Subject: Re: [coreAudio] Detecting corrupted files
  • From: Brian Whitman <email@hidden>
  • Date: Wed, 8 Mar 2006 15:30:07 -0500

One option is for your main process fork off a UNIX helper process
that tries to read the MP3 file. The main and helper processes use
a shared variable to signal how the fileread is coming along.

That, I think, is the only possible workaround right now, although it's worse because it's not just that it spins in a loop, it eats up all available RAM while it does it and eventually crashes trying to alloc more. The files that it breaks on are corrupted, the frames are all mangled. There's probably a way to go into the bytes of the mp3 and do some 'correctness' check on them before calling the read function.


We are probably going back to QT for the moment just for reading. I will say I've only found a handful of these problem files among our testbed of ca. 100K files.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: [coreAudio] Detecting corrupted files
      • From: "Alexander v. Below" <email@hidden>
References: 
 >Re: [coreAudio] Detecting corrupted files (From: lazzaro <email@hidden>)

  • Prev by Date: Re: [coreAudio] Detecting corrupted files
  • Next by Date: Re: [coreAudio] Detecting corrupted files
  • Previous by thread: Re: [coreAudio] Detecting corrupted files
  • Next by thread: Re: [coreAudio] Detecting corrupted files
  • Index(es):
    • Date
    • Thread