use normalized frame length
Merge pull request #2 from vadali/master

use normalized frame length