1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

Fix bug with time==0 being special.

Originally committed as revision 17843 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-03-06 00:23:52 +00:00
parent 494065ca36
commit 8537591abc

View File

@ -51,14 +51,13 @@ void ff_timefilter_destroy(TimeFilter *self)
void ff_timefilter_reset(TimeFilter *self)
{
self->cycle_time = 0;
self->count = 0;
}
double ff_timefilter_update(TimeFilter *self, double system_time, double period)
{
self->count++;
if (!self->cycle_time) {
if (self->count==1) {
/// init loop
self->cycle_time = system_time;
} else {