Commit 7574dc54 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

mkv: fix seek crash on osx

Close #6178
(cherry picked from commit 64ffbe934c7e3bd6452ef97062e3cd49f31e3e06)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d96e19a2
...@@ -774,7 +774,8 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_ ...@@ -774,7 +774,8 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
/* now parse until key frame */ /* now parse until key frame */
const int es[3] = { VIDEO_ES, AUDIO_ES, SPU_ES }; const int es[3] = { VIDEO_ES, AUDIO_ES, SPU_ES };
for( int i = 0, i_cat = es[0]; i < 2; i_cat = es[++i] ) i_cat = es[0];
for( int i = 0; i < 2; i_cat = es[++i] )
{ {
for( i_track = 0; i_track < tracks.size(); i_track++ ) for( i_track = 0; i_track < tracks.size(); i_track++ )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment