~ubuntu-branches/ubuntu/lucid/mp3diags/lucid

« back to all changes in this revision

Viewing changes to src/Id3V240Stream.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-03-20 11:12:42 UTC
  • mfrom: (1.1.14 upstream) (0.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100320111242-j6876sr0vmdgoelo
Tags: 1.0.05.050-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
            Id3V240Frame* p (new Id3V240Frame(notes, in, pos, hasUnsynch(), posNext, m_pFileName));
420
420
            bHasLatin1NonAscii = bHasLatin1NonAscii || p->m_bHasLatin1NonAscii;
421
421
            if (-1 == p->m_nMemDataSize)
422
 
            {
 
422
            { // it encountered zeroes, which signals the beginning of padding //ttt2 should check that there's no garbage after the first zero
423
423
                m_nPaddingSize = posNext - pos;
424
424
                delete p;
425
425
                break;
490
490
 
491
491
    MP3_TRACE (m_pos, "Id3V240Stream built.");
492
492
 
 
493
    {
 
494
        pos = m_pos;
 
495
        pos += m_nTotalSize - 1;
 
496
        in.seekg(pos);
 
497
        char c;
 
498
 
 
499
        MP3_CHECK (1 == read(in, &c, 1), m_pos, id3v240CantReadFrame, NotId3V2());
 
500
    }
 
501
 
493
502
    rst.setOk();
494
503
}
495
504