lavc/cook: get rid of wasteful pow in init_pow2table