Various small fixes picked up by Coverity Scan
parent
03f5961257
commit
2d26f549bd
|
@ -180,7 +180,7 @@ struct Encoder
|
|||
case MFX_PROFILE_AVC_CONSTRAINED_HIGH:
|
||||
case MFX_PROFILE_AVC_CONSTRAINED_BASELINE:
|
||||
init_res->bframe_delay = 0;
|
||||
|
||||
break;
|
||||
default:
|
||||
init_res->bframe_delay = 1;
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ DuplicatorInfo D3D10OutputDuplicator::AcquireNextFrame(UINT timeout)
|
|||
|
||||
//------------------------------------------
|
||||
|
||||
if(copyTex && texVal)
|
||||
if(copyTex)
|
||||
{
|
||||
D3D10Texture *d3dCopyTex = (D3D10Texture*)copyTex;
|
||||
GetD3D()->CopyResource(d3dCopyTex->texture, texVal);
|
||||
|
|
|
@ -378,7 +378,7 @@ public:
|
|||
FillRect(hDC, &rc, (HBRUSH)GetStockObject(BLACK_BRUSH));
|
||||
|
||||
if(!warningID)
|
||||
warningID = App->AddStreamInfo(Str("Sources.SoftwareCaptureSource.WindowNotFound"), bWindowNotFound ? StreamInfoPriority_High : StreamInfoPriority_Medium);
|
||||
warningID = App->AddStreamInfo(Str("Sources.SoftwareCaptureSource.WindowNotFound"), StreamInfoPriority_High);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -509,7 +509,7 @@ public:
|
|||
output.OutputWord(WORD_BE(16)); //sample size
|
||||
output.OutputWord(0); //quicktime audio compression id
|
||||
output.OutputWord(0); //quicktime audio packet size
|
||||
output.OutputDword(DWORD_BE(sampleRateHz<<16)); //sample rate (fixed point)
|
||||
output.OutputDword(DWORD_BE((sampleRateHz<<16))); //sample rate (fixed point)
|
||||
PushBox(output, DWORD_BE('esds'));
|
||||
output.OutputDword(0); //version and flags (none)
|
||||
output.OutputByte(3); //ES descriptor type
|
||||
|
|
|
@ -88,7 +88,10 @@ BOOL WINAPI InjectLibrarySafe(DWORD threadID, const wchar_t *pDLL, DWORD dwLen)
|
|||
proc = GetProcAddress(hLib, "_DummyDebugProc@12");
|
||||
#endif
|
||||
if (!proc)
|
||||
{
|
||||
FreeLibrary(hLib);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
for (i = 0; i < 17; i++) pSWHEXStr[i] ^= i ^ 1;
|
||||
|
||||
|
@ -107,6 +110,7 @@ BOOL WINAPI InjectLibrarySafe(DWORD threadID, const wchar_t *pDLL, DWORD dwLen)
|
|||
PostThreadMessage(threadID, WM_USER + 432, 0, (LPARAM)hook);
|
||||
Sleep(1000);
|
||||
|
||||
FreeLibrary(hLib);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue