[MPlayer-users] Re: matroska seeking problem

matthieu mat100 at ifrance.com
Fri Sep 12 22:12:56 CEST 2003


Hi.



 >Maybe I'll find the time to implement that. But no promises.
I have made a small patch that it seems to work...

matthieu


Index: libmpdemux/demux_mkv.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.cpp,v
retrieving revision 1.30
diff -r1.30 demux_mkv.cpp
2419,2424c2419,2427
<           if (diff < 0)
<             diff *= -1;
<           if (diff < min_diff) {
<             min_diff = diff;
<             entry = & index->entries[k];
<           }
---
 >           //if (diff < 0)
 >             //diff *= -1;
 >           if (diff < 0 && -diff < min_diff) {
 >             min_diff = -diff;
 >             entry = & index->entries[--k];
 >           } else if (diff > 0 && diff < min_diff) {
 >           min_diff = diff;
 >           entry = & index->entries[k];
 >         }



More information about the MPlayer-users mailing list