On Wed Apr 9 18:43:48 2025 +0000, Santino Mazza wrote:
Mmm, looks like it's failing to compile in the pipeline because of this line. I suppose it's because dwBitMasks only has 3 elements and in offsetof I'm trying to get the offset to a fourth element. In my computer it compiles fine, also I got this code from the quartz implementation so this is already being done.
It's complaining that you don't allocate the whole `VIDEOINFO` struct. This fixes the warning for me: ```suggestion:-0+1 mt->cbFormat = offsetof(VIDEOINFO, dwBitMasks[3]); mt->pbFormat = CoTaskMemRealloc(mt->pbFormat, sizeof(VIDEOINFO)); ```