Changeset 863

Show
Ignore:
Timestamp:
04/22/08 00:20:23 (3 months ago)
Author:
astrange
Message:

Bad logic in last commit :(

Files:

Legend:

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

    r862 r863  
    703703                KaxChapterString & chapString = GetChild<KaxChapterString>(chapDisplay); 
    704704                MediaHandler mh = GetMediaHandler(GetTrackMedia(chapterTrack)); 
    705                  
    706                 if (UInt64(startTime) > movieDuration) { 
     705                TimeValue start = UInt64(startTime) / timecodeScale; 
     706 
     707                if (start > movieDuration) { 
    707708                        Codecprintf(NULL, "MKV: Chapter time is beyond the end of the file\n"); 
    708709                        return; 
     
    720721                        Codecprintf(NULL, "MKV: Error adding text sample %d\n", err); 
    721722                else { 
    722                         TimeValue start = UInt64(startTime) / timecodeScale; 
    723                          
    724723                        InsertMediaIntoTrack(chapterTrack, start, inserted, 1, fixed1); 
    725724                }