transcode: simplify codec detection code
Merge branch 'master' into dev_subsonic_api