diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-03-06 00:14:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-03-06 00:14:44 +0000 |
commit | 55b58598676d192d62ceb54a4be173ea22c0739e (patch) | |
tree | b4cfb381f8859190774c36ee6abb72583ad21e76 /libavformat/timefilter.c | |
parent | 08ffd3708bd15613e85e331b04c89fbde2054b30 (diff) | |
download | ffmpeg-55b58598676d192d62ceb54a4be173ea22c0739e.tar.gz |
Merge ff_timefilter_read() and ff_timefilter_update(), this simplifies API and
avoids calling them in the wrong order.
Originally committed as revision 17841 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/timefilter.c')
-rw-r--r-- | libavformat/timefilter.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/timefilter.c b/libavformat/timefilter.c index 26d57c0617..a90371f2c2 100644 --- a/libavformat/timefilter.c +++ b/libavformat/timefilter.c @@ -53,7 +53,7 @@ void ff_timefilter_reset(TimeFilter *self) self->cycle_time = 0; } -void ff_timefilter_update(TimeFilter *self, double system_time, double period) +double ff_timefilter_update(TimeFilter *self, double system_time, double period) { if (!self->cycle_time) { /// init loop @@ -68,9 +68,5 @@ void ff_timefilter_update(TimeFilter *self, double system_time, double period) self->cycle_time += self->feedback2_factor * loop_error; self->integrator2_state += self->feedback3_factor * loop_error / period; } -} - -double ff_timefilter_read(TimeFilter *self) -{ return self->cycle_time; } |