Changeset 862

Show
Ignore:
Timestamp:
04/22/08 00:04:59 (6 months ago)
Author:
astrange
Message:

Don't add chapter entries if their times are invalid. (fixes kurenai)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MatroskaImportPrivate.cpp

    r857 r862  
    704704                MediaHandler mh = GetMediaHandler(GetTrackMedia(chapterTrack)); 
    705705                 
     706                if (UInt64(startTime) > movieDuration) { 
     707                        Codecprintf(NULL, "MKV: Chapter time is beyond the end of the file\n"); 
     708                        return; 
     709                } 
     710                 
    706711                Rect bounds = {0, 0, 0, 0}; 
    707712                TimeValue inserted;