Commit 899bd125 authored by michael's avatar michael

Fix bug with time==0 being special.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17843 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2c371d13
...@@ -51,14 +51,13 @@ void ff_timefilter_destroy(TimeFilter *self) ...@@ -51,14 +51,13 @@ void ff_timefilter_destroy(TimeFilter *self)
void ff_timefilter_reset(TimeFilter *self) void ff_timefilter_reset(TimeFilter *self)
{ {
self->cycle_time = 0;
self->count = 0; self->count = 0;
} }
double ff_timefilter_update(TimeFilter *self, double system_time, double period) double ff_timefilter_update(TimeFilter *self, double system_time, double period)
{ {
self->count++; self->count++;
if (!self->cycle_time) { if (self->count==1) {
/// init loop /// init loop
self->cycle_time = system_time; self->cycle_time = system_time;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment