mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
12f7296c6c
In HLS, the segment iterator can add or remove segments rapidly, causing the same segment to reappear with a slightly different start time. The existing duplicate detection used a 1ms tolerance, but some streams exhibit timing inaccuracies between 1ms and 2ms, causing the same segment to be downloaded twice. This leads to AV sync issues because the duplicate segment shifts the buffer by one segment duration. Increase the tolerance from 1ms to 2ms to cover these cases. --------- Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>