atrac3: ensure input frame is not overwritten (it is const)