- var result = e.target.result;
- var basicAtom = new Atom(result);
- if (!basicAtom)
- return;
- else if (basicAtom.type == 'moov')
- readMoovAtom(offset, basicAtom.size);
- else
- checkForMoovAtom(offset + basicAtom.size);
+ var atom = new Atom(e.target.result);
+ if (atom)
+ readAtom(offset, atom.size);