Mercurial > libavformat.hg
changeset 4659:0004dea93e16 libavformat
Vertical align.
author | michael |
---|---|
date | Fri, 06 Mar 2009 00:48:02 +0000 |
parents | d5c0fe987063 |
children | 687695aeadca |
files | timefilter.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/timefilter.c Fri Mar 06 00:47:16 2009 +0000 +++ b/timefilter.c Fri Mar 06 00:48:02 2009 +0000 @@ -59,15 +59,15 @@ self->count++; if (self->count==1) { /// init loop - self->cycle_time = system_time; + self->cycle_time = system_time; } else { double loop_error; self->cycle_time += self->clock_period * period; /// calculate loop error - loop_error = system_time - self->cycle_time; + loop_error = system_time - self->cycle_time; /// update loop - self->cycle_time += FFMAX(self->feedback2_factor, 1.0/(self->count)) * loop_error; + self->cycle_time += FFMAX(self->feedback2_factor, 1.0/(self->count)) * loop_error; self->clock_period += self->feedback3_factor * loop_error / period; } return self->cycle_time;