Anton Baskanov (@baskanov) commented about dlls/amstream/ddrawstream.c:
return S_OK;
}
+static void set_mt_from_desc(AM_MEDIA_TYPE *mt, const DDSURFACEDESC *format) +{
- VIDEOINFOHEADER *videoinfo;
- videoinfo = (VIDEOINFOHEADER*)mt->pbFormat;
- videoinfo->bmiHeader.biWidth = format->dwWidth;
- videoinfo->bmiHeader.biHeight = format->dwHeight;
- if (format->ddpfPixelFormat.dwRGBBitCount == 16 && format->ddpfPixelFormat.dwRBitMask == 0x7c00)
mt->subtype = MEDIASUBTYPE_RGB555;
- else if (format->ddpfPixelFormat.dwRGBBitCount == 16 && format->ddpfPixelFormat.dwRBitMask == 0x7c00)
```suggestion:-0+0 else if (format->ddpfPixelFormat.dwRGBBitCount == 16 && format->ddpfPixelFormat.dwRBitMask == 0xf800) ```