ac3enc: use dsputil functions in apply_window()