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