Issue is with rounding up of length reported by audaspace for audio part - when it matches nearly exactly the actual video length, using ceil() would make it one frame longer. Now apply a small (0.0001 frame) negative offset to prevent this effect.
Issue is with rounding up of length reported by audaspace for audio part - when it matches nearly exactly the actual video length, using ceil() would make it one frame longer. Now apply a small (0.0001 frame) negative offset to prevent this effect.