I have a program using Intel Media SDK which uses VPP and Encoder with D3D surfaces (similar to: http://software.intel.com/en-us/articles/intel-media-sdk-tutorial-simple...) and also using the D3D memory allocator routines provided in the tutorial.
However, I observe that in the debug output, there are too many D3D Map calls and not enough Unmap calls being made: D3D11 ERROR: ID3D11DeviceContext::Map: This resource is already mapped! [ RESOURCE_MANIPULATION ERROR #2097213: RESOURCE_MAP_ALREADYMAPPED]. Is this behavior normal? It would seem to me that the number of Map and Unmap calls should be equal.