Changeset 929

Show
Ignore:
Timestamp:
08/25/08 13:29:29 (3 months ago)
Author:
astrange
Message:

Avoid crashes due to wrong types from libmatroska. The rest of this code hasn't been thoroughly checked.
Patch by Roine Gustafson
Closes #361

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/perian-1.1/MatroskaImportPrivate.cpp

    r887 r929  
    248248    for (int pass = 1; pass <= 2; pass++) { 
    249249                for (int i = 0; i < trackEntries.ListSize(); i++) { 
     250                        if (EbmlId(*trackEntries[i]) != KaxTrackEntry::ClassInfos.GlobalId) 
     251                                continue; 
    250252                        KaxTrackEntry & track = *static_cast<KaxTrackEntry *>(trackEntries[i]); 
    251253                        KaxTrackNumber & number = GetChild<KaxTrackNumber>(track);