added codec compability check for audio/video