[MPlayer-dev-eng] NUT backptr proposal

Michael Niedermayer michaelni at gmx.at
Thu Dec 29 21:54:56 CET 2005


Hi

On Thu, Dec 29, 2005 at 10:29:31PM +0200, Ivan Kalvachev wrote:
> 2005/12/29, Michael Niedermayer <michaelni at gmx.at>:
> [...]
> > n= get_v();
> > for(i = 0; i < n; i++) {
> >     syncpoint[i].pts     = syncpoint[i-1].pts      + get_v() + 1;
> >     syncpoint[i].pos_div8= syncpoint[i-1].pos_div8 + get_v() + 1;
> > }
> 
> Humm... what happens on first iteration when i=0?
>  syncpoint[0].pts = syncpoint[ -1 ].pts + get_v() +1;

syncpoint = syncpoint_base + 1;
syncpoint[-1].pts = syncpoint[-1].pos_div8= -1;

;)

[...]
-- 
Michael




More information about the MPlayer-dev-eng mailing list