ffv1: move ac->vlc switch to encode_slice()