Originally committed as revision 17843 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -51,14 +51,13 @@ void ff_timefilter_destroy(TimeFilter *self) |
| 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 {
|