diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-05 19:29:18 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-07 22:31:29 +0200 |
commit | 62ae37decde7c15d4da95f1eb198789b8424d067 (patch) | |
tree | 8d138405684b8e67307ff5fac19081d238290b7d /libavdevice | |
parent | e67b0f99520eb8154f5e703edea6d95bb1de711b (diff) | |
download | ffmpeg-streaming-62ae37decde7c15d4da95f1eb198789b8424d067.zip ffmpeg-streaming-62ae37decde7c15d4da95f1eb198789b8424d067.tar.gz |
timefilter: De-doxygenize normal code comments and drop silly ones
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/timefilter.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavdevice/timefilter.c b/libavdevice/timefilter.c index 2e26b27..8f52fc5 100644 --- a/libavdevice/timefilter.c +++ b/libavdevice/timefilter.c @@ -28,8 +28,8 @@ #include "timefilter.h" struct TimeFilter { - /// Delay Locked Loop data. These variables refer to mathematical - /// concepts described in: http://www.kokkinizita.net/papers/usingdll.pdf + // Delay Locked Loop data. These variables refer to mathematical + // concepts described in: http://www.kokkinizita.net/papers/usingdll.pdf double cycle_time; double feedback2_factor; double feedback3_factor; @@ -62,15 +62,12 @@ double ff_timefilter_update(TimeFilter *self, double system_time, double period) { self->count++; if (self->count == 1) { - /// init loop 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; - /// update loop self->cycle_time += FFMAX(self->feedback2_factor, 1.0 / self->count) * loop_error; self->clock_period += self->feedback3_factor * loop_error / period; } |