[vlc-commits] demux:mkv: do not use invalid seekpoints for the final seek target
Steve Lhomme
git at videolan.org
Fri Aug 4 11:58:21 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Aug 4 11:31:43 2017 +0200| [c1ae370b903d77dead5b753bd662982febd700fd] | committer: Jean-Baptiste Kempf
demux:mkv: do not use invalid seekpoints for the final seek target
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1ae370b903d77dead5b753bd662982febd700fd
---
modules/demux/mkv/matroska_segment_seeker.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_seeker.cpp b/modules/demux/mkv/matroska_segment_seeker.cpp
index f55a279fde..75cee3a640 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -224,10 +224,12 @@ SegmentSeeker::get_seekpoints_around( mtime_t target_pts, track_ids_t const& pri
continue;
}
- if( points.first.fpos > track_points.first.fpos )
+ if( track_points.first.trust_level > Seekpoint::DISABLED &&
+ points.first.fpos > track_points.first.fpos )
points.first = track_points.first;
- if( points.second.fpos < track_points.second.fpos )
+ if( track_points.second.trust_level > Seekpoint::DISABLED &&
+ points.second.fpos < track_points.second.fpos )
points.second = track_points.second;
}
}
More information about the vlc-commits
mailing list