Commit 60d162df by Oliver Woodman

Fix overflow when comparing HLS Segments for long videos.

parent d2e480f0
......@@ -42,7 +42,7 @@ public final class HlsMediaPlaylist {
@Override
public int compareTo(Long startTimeUs) {
return (int) (this.startTimeUs - startTimeUs);
return this.startTimeUs > startTimeUs ? 1 : (this.startTimeUs < startTimeUs ? -1 : 0);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment