found bug in EventStream()... fixed...
Posted: Sat Jan 15, 2005 8:06 pm
in zm_event.cpp, if the duration is less than a full second, duration is set to zero..
int duration = atoi(dbrow[3]);
and then you get the floating point error here...
int base_fps = frames/duration;
I just set base_fps to 1 if duration is zero, however, you can also do floating point math for the computations to get the exact answer.
Reza
int duration = atoi(dbrow[3]);
and then you get the floating point error here...
int base_fps = frames/duration;
I just set base_fps to 1 if duration is zero, however, you can also do floating point math for the computations to get the exact answer.
Reza