ac3enc: move ff_ac3_encode_frame() to ac3enc_template.c