avifil32: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
af042f2754
commit
fdfb86589e
|
@ -1244,7 +1244,7 @@ static BOOL AVISaveOptionsFmtChoose(HWND hWnd)
|
|||
pOptions->dwFlags |= AVICOMPRESSF_VALID;
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, afmtc.pwfxEnum);
|
||||
return (ret == S_OK ? TRUE : FALSE);
|
||||
return ret == S_OK;
|
||||
} else {
|
||||
ERR(": unknown streamtype 0x%08X\n", sInfo.fccType);
|
||||
return FALSE;
|
||||
|
|
|
@ -307,8 +307,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
|
|||
if (sInfo.fccType != streamtypeVIDEO)
|
||||
return AVIERR_UNSUPPORTED;
|
||||
|
||||
This->bFormatChanges =
|
||||
(sInfo.dwFlags & AVISTREAMINFO_FORMATCHANGES ? TRUE : FALSE );
|
||||
This->bFormatChanges = (sInfo.dwFlags & AVISTREAMINFO_FORMATCHANGES) != 0;
|
||||
This->dwFormatChangeCount = sInfo.dwFormatChangeCount;
|
||||
This->dwEditCount = sInfo.dwEditCount;
|
||||
This->lCurrentFrame = -1;
|
||||
|
|
Loading…
Reference in New Issue