properly handle potentially non 16 bit planar audio formats

This patch removes the duplicate code to set the requested format, and selects the appropriate non-planar format based on the format info discovered in the call to `avformat_find_stream_info`.