Method
"getExceptionSegmentCount(long fromMillisecond, long toMillisecond)"
in class SegmentedTimeline already has a fast return option:
if (toMillisecond < fromMillisecond) {
return (0);
}
but this is not all. This patch adds fast return when the
[fromMillisecond, toMillisecond] interval is before or after the first
or last exception segment respectively.
fast return for SegmentedTimeline.getExceptionSegmentCount()