mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix overflow when comparing HLS Segments for long videos.
This commit is contained in:
parent
d2e480f01b
commit
60d162df18
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue