Menu

#3 Bad MF_SOURCE_READER_FLAG code

v1.0 (example)
open
nobody
None
5
2016-04-28
2016-04-28
No

I was testing last Flac codec with Microsoft Tutorial: Decoding Audio on windows 7:

https://msdn.microsoft.com/fr-fr/library/windows/desktop/dd757929(v=vs.85).aspx

As Windows 10 has by default a flac decoder I was searching a solutions for windows 7 and Vista.
Default windows decoder (flac on win 10, MP3, ALAC...) are working fine even if were are requiring samples after the end of the file!

With default windows MMF codecs, in this case we have:
ReadSample function returns dwStreamFlags = MF_SOURCE_READERF_ENDOFSTREAM.

But with Flac from SourceForge, if we require a stream duration greater than the real duration, we get dwStreamFlags = MF_SOURCE_READERF_ERROR and Hresult = 0xC00D3E9B.
The correct return value should be MF_SOURCE_READERF_ENDOFSTREAM and Hresult = S_OK;

Regards

Sebastien

Discussion


Log in to post a comment.