Use avcodec_encode_audio2() with libavcodec v54 (SF-175).
Fix compile warning about planar_to_interleaved() unused.

And make it more clear which conversion function is needed for which
version of libavcodec.
Fix setting muxer-specific options (SF-197).

Patch provided by Peter Egro <pegro@users.sf.net>