An attempt to copy Media Foundation attribute collection to itself results in a deadlock. Well, it’s not a good idea and a practical one to do a nonsense like this, but the implementation should be resistant to such use either, esp. avoiding the unexpected deadlock. #include “stdafx.h” #include <mfapi.h> #pragma comment(lib, “mfplat.lib”) #pragma comment(lib, “mfuuid.lib”)…