[vlc-commits] [Git][videolan/vlc][master] hls: Increase the precision of the time scale
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jul 29 11:46:36 UTC 2021
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
8db20416 by Jérémy VIGNELLES at 2021-07-29T11:14:48+00:00
hls: Increase the precision of the time scale
duration computations were made with precision loss, which add up and leads to unprecise seeking if the stream is really long (like a day or two)
ref : https://mailman.videolan.org/pipermail/vlc-devel/2019-September/127759.html
- - - - -
1 changed file:
- modules/demux/hls/playlist/Parser.cpp
Changes:
=====================================
modules/demux/hls/playlist/Parser.cpp
=====================================
@@ -220,7 +220,7 @@ void M3U8Parser::parseSegments(vlc_object_t *, HLSRepresentation *rep, const std
{
SegmentList *segmentList = new (std::nothrow) SegmentList(rep);
- Timescale timescale(100);
+ Timescale timescale(1000000);
rep->addAttribute(new TimescaleAttr(timescale));
rep->b_loaded = true;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8db20416ea137027bad34ee5e3d14c1f7daf223e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8db20416ea137027bad34ee5e3d14c1f7daf223e
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list