Yes, when we decode it actually does not matter what is in the output buffer we overwrite it. So this line can be removed I will do that.. at least it should not be needed - lets see ;).