Fix CheckMediaType() logic
Code refactoring
Don't crash on wrong AM_SAMPLE2_PROPERTIES

Hello, AC3Filter.