@@ -4393,8 +4393,7 @@ static void test_MFCalculateImageSize(void)
4393
4393
todo_wine_if (is_MEDIASUBTYPE_RGB (ptr -> subtype ) || IsEqualGUID (ptr -> subtype , & MFVideoFormat_NV11 ))
4394
4394
ok (hr == S_OK || (is_broken && hr == E_INVALIDARG ), "%u: failed to calculate image size, hr %#lx.\n" , i , hr );
4395
4395
todo_wine_if (is_MEDIASUBTYPE_RGB (ptr -> subtype )
4396
- || IsEqualGUID (ptr -> subtype , & MFVideoFormat_NV11 )
4397
- || (IsEqualGUID (ptr -> subtype , & MFVideoFormat_RGB24 ) && ptr -> width % 4 == 0 ))
4396
+ || IsEqualGUID (ptr -> subtype , & MFVideoFormat_NV11 ))
4398
4397
ok (size == ptr -> size , "%u: unexpected image size %u, expected %u. Size %u x %u, format %s.\n" , i , size , ptr -> size ,
4399
4398
ptr -> width , ptr -> height , wine_dbgstr_an ((char * )& ptr -> subtype -> Data1 , 4 ));
4400
4399
}
@@ -4426,8 +4425,7 @@ static void test_MFGetPlaneSize(void)
4426
4425
4427
4426
hr = pMFGetPlaneSize (ptr -> subtype -> Data1 , ptr -> width , ptr -> height , & size );
4428
4427
ok (hr == S_OK , "%u: failed to get plane size, hr %#lx.\n" , i , hr );
4429
- todo_wine_if (IsEqualGUID (ptr -> subtype , & MFVideoFormat_NV11 )
4430
- || (IsEqualGUID (ptr -> subtype , & MFVideoFormat_RGB24 ) && ptr -> width % 4 == 0 ))
4428
+ todo_wine_if (IsEqualGUID (ptr -> subtype , & MFVideoFormat_NV11 ))
4431
4429
ok (size == plane_size , "%u: unexpected plane size %lu, expected %u. Size %u x %u, format %s.\n" , i , size , plane_size ,
4432
4430
ptr -> width , ptr -> height , wine_dbgstr_an ((char * )& ptr -> subtype -> Data1 , 4 ));
4433
4431
}
@@ -5994,13 +5992,11 @@ static void test_MFCreate2DMediaBuffer(void)
5994
5992
5995
5993
hr = IMF2DBuffer_GetContiguousLength (_2dbuffer , & length );
5996
5994
ok (hr == S_OK , "Failed to get length, hr %#lx.\n" , hr );
5997
- todo_wine_if (IsEqualGUID (ptr -> subtype , & MFVideoFormat_RGB24 ) && ptr -> width % 4 == 0 )
5998
5995
ok (length == ptr -> contiguous_length , "%d: unexpected contiguous length %lu for %u x %u, format %s.\n" ,
5999
5996
i , length , ptr -> width , ptr -> height , wine_dbgstr_guid (ptr -> subtype ));
6000
5997
6001
5998
hr = IMFMediaBuffer_Lock (buffer , & data , & length2 , NULL );
6002
5999
ok (hr == S_OK , "Failed to lock buffer, hr %#lx.\n" , hr );
6003
- todo_wine_if (IsEqualGUID (ptr -> subtype , & MFVideoFormat_RGB24 ) && ptr -> width % 4 == 0 )
6004
6000
ok (length2 == ptr -> contiguous_length , "%d: unexpected linear buffer length %lu for %u x %u, format %s.\n" ,
6005
6001
i , length2 , ptr -> width , ptr -> height , wine_dbgstr_guid (ptr -> subtype ));
6006
6002
0 commit comments