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:
parent
494065ca36
commit
8537591abc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user