Commit 0a1a5015 authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

ir50_32: Handle 24-bit output media type.

parent a20e1df9
......@@ -95,7 +95,7 @@ IV50_DecompressQuery( LPBITMAPINFO in, LPBITMAPINFO out )
return ICERR_BADFORMAT;
}
if ( out->bmiHeader.biBitCount != 32 && out->bmiHeader.biBitCount != 16 )
if ( out->bmiHeader.biBitCount != 32 && out->bmiHeader.biBitCount != 24 && out->bmiHeader.biBitCount != 16 )
{
TRACE("incompatible depth requested\n");
return ICERR_BADFORMAT;
......@@ -153,6 +153,8 @@ static LRESULT IV50_DecompressBegin( IMFTransform *decoder, LPBITMAPINFO in, LPB
if ( out->bmiHeader.biBitCount == 32 )
output_subtype = &MFVideoFormat_RGB32;
else if ( out->bmiHeader.biBitCount == 24 )
output_subtype = &MFVideoFormat_RGB24;
else if ( out->bmiHeader.biBitCount == 16 )
output_subtype = &MFVideoFormat_RGB555;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment