Fix bug where the wrong number of frames could be encoded (if one frame takes longer than the others)
Bitstream length per frame works again
Merge branch 'stats_and_framecount_fixes' of https://github.com/lfasnacht/kvazaar