Revision 8537591a libavformat/timefilter.c

View differences:

libavformat/timefilter.c
51 51

  
52 52
void ff_timefilter_reset(TimeFilter *self)
53 53
{
54
    self->cycle_time = 0;
55 54
    self->count      = 0;
56 55
}
57 56

  
58 57
double ff_timefilter_update(TimeFilter *self, double system_time, double period)
59 58
{
60 59
    self->count++;
61
    if (!self->cycle_time) {
60
    if (self->count==1) {
62 61
        /// init loop
63 62
        self->cycle_time        = system_time;
64 63
    } else {

Also available in: Unified diff