Fixed length and start calculations

Old comparison used direct timecode comparison which was causing issues.
using a frame count works more reliably.