title: How determine raw AAC frame size without ADTS header in .mp4?
body: <p>I am trying to restore corrupted video with sound. Video restore good because each video frame consist frist bytes header with size. But in .mp4 AAC saved as raw byte stream without ADTS header.</p>
  <p>At first I wanted take all bytes data between 2 video frames and save in as 1 audio frame, but there may be more the one audio frame. Each AAC frame started at <strong>0x21 ... ...</strong>. So i am tryied split all received data by '0x21' separator, but in not always work because some AAC-samples may consist inside several value = 0x21.</p>
  <p>I found out that ffmpeg when read .mp4 format parse <strong>moov</strong> atom -&gt; ... -&gt; <strong>stsz</strong> (Sample Size). But if moov atom was lost how I can restore correct AAC sizes for audio frames?</p>