fix ac3 and dts detection (patch by Joakim Plate <joakim.plate at ecce.se>)