提交 8537591a 编写于 作者: M Michael Niedermayer

Fix bug with time==0 being special.

Originally committed as revision 17843 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 494065ca
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册