Fix overflow when comparing HLS Segments for long videos.
This commit is contained in:
parent
d2e480f01b
commit
60d162df18
@ -42,7 +42,7 @@ public final class HlsMediaPlaylist {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Long startTimeUs) {
|
public int compareTo(Long startTimeUs) {
|
||||||
return (int) (this.startTimeUs - startTimeUs);
|
return this.startTimeUs > startTimeUs ? 1 : (this.startTimeUs < startTimeUs ? -1 : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user