AC-3 is an audio codec, but IsVideo() was returning true. This caused AC-3 audio tracks to be misidentified as video tracks.