I have an M4A that Foobar will not optimize or replaygain without corrupting. It reads and plays fine in both iTunes and Foobar2000 before anything is done to it. I noticed it was corrupting and giving me problems so I decided to extract the AAC file from the M4A container and then put it in a new M4A container. When I tried that Foobar couldn't extract the AAC from the M4A container. So I downloaded the MPEG-4 tools available on Rarewares and tried MP4Extract. MP4Extract gave me this error when trying to extract the AAC file:
MP4ERROR: ReadAtom: invalid atom size
What is an invalid atom size and how can I correct it? Note that I tried reripping with iTunes and it produced another "corrupted" M4A that behaved exactly like this one. The only solution I have found is reripping the song with Exact Audio Copy then converting the WAV to AAC with iTunes. I'm just not understanding what the problem is here. If anybody can help that'd be great.
Edit: Just for those curious, the song is from Korn's "Untouchables" album: it's track 10 and titled "Embrace".