AC3 support.

Also cope with non-lowercase extensions,
despite being criminally ugly.