[MPlayer-users] -idx is not working properly in SVN r29979

Uoti Urpala uoti.urpala at pp1.inet.fi
Thu Dec 17 03:09:01 CET 2009


On Thu, 2009-12-17 at 02:26 +0100, rvm wrote:
> 2009/12/8, RVM <rvm3000 at ya.com>:
> >  mplayer video.avi -idx

> >  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.

Yes that is buggy; one of the assignments "merged" into calloc was after
other code that already initialized and used the field. I think adding
the "priv->idx_pos = 0;" line back where the original assignment was
should fix it.



More information about the MPlayer-users mailing list