Hello!
Windows 10 (16299, 15063 and maybe earlier versions) issues several
KSPROPERTY_PIN_PROPOSEDATAFORMAT/SET property requests after IRP sink
interface arrival. Some of these requests contain obviously invalid
data.
Watching for KSDATAFORMAT contents, I see that the same data are
passed in consecutive requests, except varying SubFormat field:
Total data size (Req->ValueSize in PCPROPERTY_REQUEST): 0x40
KSDATAFORMAT:
FormatSize: 0x40
Flags: 0
SampleSize: 0x3a281610
Reserved: 0x7ff8
MajorFormat: KSDATAFORMAT_TYPE_AUDIO
SubFormat: KSDATAFORMAT_SUBTYPE_PCM,
KSDATAFORMAT_SUBTYPE_IEC61937_DOLBY_DIGITAL or
KSDATAFORMAT_SUBTYPE_IEC61937_WMA_PRO
Specifier: KSDATAFORMAT_SPECIFIER_WAVEFORMATEX
Assosicated WAVEFORMATEX structure is filled with invalid data too:
wFormatTag: 0x4960
nChannels: 0x8c13
nSamplesPerSec: 0x11cf51ad
nAvgBytesPerSec: 0xf8948a87
nBlockAlign: 0xc101
wBitsPerSample: 0
cbSize: 0xe
Such WAVEFORMATEX data are equal to KSIDENTIFIER filled with
KSPROPSETID_Pin/KSPROPERTY_PIN_PROPOSEDATAFORMAT.
I have attached WinDbg Watch window screenshots if they won't
be stripped by the mailing list server.
Are such property requests meaningful, or they are ill-formed?
Regards,
Eugene
Attachment:
PCM.png
Description: PNG image
Attachment:
DOLBY_DIGITAL.png
Description: PNG image
Attachment:
WMA_PRO.png
Description: PNG image