fix buffer size computation introduced in https://github.com/mangui/HLSprovider/commit/78c91e4b9944fc261e36da3fb161fa0270c1f09f