[vlc-commits] [Git][videolan/vlc][3.0.x] hls: Increase the precision of the time scale
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Aug 5 17:00:18 UTC 2021
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
a498b0d1 by Jérémy VIGNELLES at 2021-07-29T14:12:37+00:00
hls: Increase the precision of the time scale
(cherry picked from commit 8db20416ea137027bad34ee5e3d14c1f7daf223e)
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)
- - - - -
1 changed file:
- modules/demux/hls/playlist/Parser.cpp
Changes:
=====================================
modules/demux/hls/playlist/Parser.cpp
=====================================
@@ -210,7 +210,7 @@ void M3U8Parser::parseSegments(vlc_object_t *, Representation *rep, const std::l
{
SegmentList *segmentList = new (std::nothrow) SegmentList(rep);
- rep->setTimescale(100);
+ rep->setTimescale(1000000);
rep->b_loaded = true;
mtime_t totalduration = 0;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a498b0d125f6fa2f5c2633107c5bf3d35e0b7236
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a498b0d125f6fa2f5c2633107c5bf3d35e0b7236
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list