[MPlayer-dev-eng] NUT backptr proposal

Ivan Kalvachev ikalvachev at gmail.com
Thu Dec 29 21:29:31 CET 2005


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;




More information about the MPlayer-dev-eng mailing list