I tried saving wav file using wavsink sample. Input file is simple wav file, containing 1024 samples (values: 0-1023). I expected wavsink to produce the same file. However, the output file is 46 samples (92 bytes) shorter. MFTrace shows that received sample buffer is shorter:
23144,3898 14:09:55.94471 CMFStreamSinkDetours::ProcessSample @0200FF38 Sample @0059C128, Time 0ms, Duration 30ms, Buffers 1, Size 1956B, MFSampleExtension_CleanPoint=1;MFSampleExtension_Token=@0059AAC8
(should be 2048B). However, examining buffer memory in the debugger shows that all bytes are set properly (0-1023), only length is reported shorter than it should actually be. Any ideas how this can be fixed?