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;