for (size_t row = currently_playing_idx; row < clips.size(); ++row) {
const Clip &clip = clips[row].clip;
double clip_length = double(clip.pts_out - clip.pts_in) / TIMEBASE / clip.speed;
- if (clip_length >= 86400.0) { // More than one day.
+ if (clip_length >= 86400.0 || clip.pts_out == -1) { // More than one day.
++remaining.num_infinite;
} else {
if (row == currently_playing_idx) {