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

« back to all changes in this revision

Viewing changes to src/MpegStream.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:
529
529
 
530
530
    const int BFR_SIZE (128);
531
531
    streamsize nRead (read(in, m_data, BFR_SIZE));
532
 
    MP3_CHECK_T (nRead >= 3, m_pos, "Invalid ID3V1 tag. File too short.", NotId3V1Stream());
 
532
    MP3_CHECK_T (BFR_SIZE == nRead, m_pos, "Invalid ID3V1 tag. File too short.", NotId3V1Stream());
533
533
    MP3_CHECK_T (0 == strncmp("TAG", m_data, 3), m_pos, "Invalid ID3V1 tag. Invalid header.", NotId3V1Stream());
534
534
 
535
535
    MP3_CHECK (BFR_SIZE == nRead, m_pos, id3v1TooShort, NotId3V1Stream());