-idx is not working properly in SVN r29979

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



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.



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux