You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HLS Parser converts from a string decimal duration in seconds into long microseconds. Because the conversion passes through a java double type it can result in representation errors.
For example, durations like:
#EXTINF:4.004,
or
#EXTINF:2.002,
will come out to less then 2,002,000 microseconds if converted to double and multiplied by C.MICROS_PER_SECOND
Easy fix is to use the BigDecimal class in Java, which avoids all of this.
The text was updated successfully, but these errors were encountered:
The HLS Parser converts from a string decimal duration in seconds into long microseconds. Because the conversion passes through a java
double
type it can result in representation errors.For example, durations like:
or
will come out to less then 2,002,000 microseconds if converted to double and multiplied by
C.MICROS_PER_SECOND
Easy fix is to use the
BigDecimal
class in Java, which avoids all of this.The text was updated successfully, but these errors were encountered: