       totalTime = 0
     for entry in @entries
       sampleIndexInChunk = Math.floor(remainingTime / entry.sampleDelta)
+      if sampleIndexInChunk < 0
+        sampleIndexInChunk = 0
       if sampleIndexInChunk < entry.sampleCount
         totalTime += sampleIndexInChunk * entry.sampleDelta
         return {

          @currentPlayTime = minTime
      else
        # No audio sample left
        audioSampleNumber = @numAudioSamples + 1
        @isAudioEOF = true
    else

      totalTime = 0
    for entry in @entries
      numSamples = Math.ceil(remainingTime / entry.sampleDelta)
      if numSamples < 0
        numSamples = 0
      if numSamples <= entry.sampleCount
        totalTime += numSamples * entry.sampleDelta
        totalSeconds = totalTime / timescale
