[vlc-commits] demux:mkv: don't try to seek to an invalid position
Steve Lhomme
git at videolan.org
Wed Feb 14 16:48:17 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 14 11:33:21 2018 +0100| [29d0c330be516081a7065c062174ea955f298f53] | committer: Hugo Beauzée-Luyssen
demux:mkv: don't try to seek to an invalid position
(cherry picked from commit 621a467e11236fc321ec33a9de18eaf24c6d75ae)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=29d0c330be516081a7065c062174ea955f298f53
---
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 388d0dc7af..c97d283bab 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -872,6 +872,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