On Thu, Dec 17, 2009 at 02:26:17AM +0100, rvm wrote: > 2009/12/8, RVM <rvm3000 at ya.com>: > > I've been noticing a problem with -idx in the latest revisions. I've just > >??compiled SVN r29979 and the problem is still present. > > > >??I try to play a file which doesn't have an index, so I use -idx > > > >??mplayer video.avi -idx > > > >??The problem is that when I press the right cursor to seek 10 seconds, it seems > >??it seeks to the end of the file and then mplayer closes. If I press the left > >??cursor instead it seeks to 10 seconds before the end of the file. > > > >??If I press the down cursor if goes to 1 minute before the end the file. (At > >??this point the cursor keys work ok, pressing left goes 10 seconds backwards, > >??right goes 10 seconds forward). > > > >??If I play the file and press the up cursor mplayer closes again, I suppose it > >??tries to go to the end of file + 1 minute. > > > >??So the problem seems that when seeking for first time, the starting point is > >??the end of the file instead of the beginning. > > > >??By the way, -forceidx has the same behaviour. > > I think the problem was introduced in revision 29914: > > ------------------------?-------------------------------?----------------- > r29914 | reimar | 2009-11-16 11:44:00 +0100 (lun, 16 nov 2009) | 2 lines > > Use calloc instead of initializing each struct member individually to 0. > > ----------------------------?-------------------------------?------------- > > -idx worked ok before that revision. Hm, idx should only have an issue with files lacking an index. Hopefully it should be fixed though.