On Fri Sep 15 06:50:15 2023 +0000, Ziqing Hui wrote:
The H264 samples we pass to MFTransform in mf/test/transform.c[1] are containing start code. Does it matters? [1] https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/mf/tests/transform.c?...
Hmm... you're right maybe the MFT can handle either format somehow then, would be better to check what the games are actually doing in this case. Call of Duty Black Ops 3, Shadow Warrior 2 for instance are using the MFT decoder directly.
There's also the MF_NALU_LENGTH_SET and MF_NALU_LENGTH_SET attributes (https://learn.microsoft.com/en-us/windows/win32/medfound/mf-nalu-length-set) which maybe indicate that the stream is in a format or another.