[vlc-commits] demux:mkv: don't try to seek to an invalid position
Steve Lhomme
git at videolan.org
Wed Feb 14 13:46:21 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 14 11:33:21 2018 +0100| [621a467e11236fc321ec33a9de18eaf24c6d75ae] | committer: Steve Lhomme
demux:mkv: don't try to seek to an invalid position
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=621a467e11236fc321ec33a9de18eaf24c6d75ae
---
modules/demux/mkv/matroska_segment.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 8eb4333f2b..95d160e6e2 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -850,6 +850,9 @@ bool matroska_segment_c::Seek( demux_t &demuxer, mtime_t i_absolute_mk_date, mti
it->first, it->second.pts, it->second.fpos, trackit->second->i_skip_until_fpos );
}
+ if ( i_seek_position == std::numeric_limits<SegmentSeeker::fptr_t>::max() )
+ return false;
+
// propogate seek information //
sys.i_pcr = VLC_TS_INVALID;
More information about the vlc-commits
mailing list