Simplify PCM codec; replace switch() statements with av_get_bits_per_sample().