[vlc-commits] [Git][videolan/vlc][master] demux: adaptive: fix offset by one when use Element repeat field
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Mon Nov 21 18:28:35 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
652ed638 by Zhao Zhili at 2022-11-21T18:11:02+00:00
demux: adaptive: fix offset by one when use Element repeat field
- - - - -
1 changed file:
- modules/demux/adaptive/playlist/SegmentTimeline.cpp
Changes:
=====================================
modules/demux/adaptive/playlist/SegmentTimeline.cpp
=====================================
@@ -100,7 +100,7 @@ uint64_t SegmentTimeline::getElementNumberByScaledPlaybackTime(stime_t scaled) c
const Element *el = *it;
if(scaled >= el->t)
{
- if((uint64_t)scaled < el->t + (el->d * el->r))
+ if((uint64_t)scaled < el->t + (el->d * (el->r + 1)))
return el->number + (scaled - el->t) / el->d;
}
/* might have been discontinuity */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/652ed6383f13f34e7f891884bec32d513df6fc50
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/652ed6383f13f34e7f891884bec32d513df6fc50
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list