quartz: Use nAvgBytesPerSec to calculate length.