Commit 6178e86a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

avifil32: Remove some redundant "not NULL" checks (coccicheck).

parent 989e9820
...@@ -1447,7 +1447,7 @@ BOOL WINAPI AVISaveOptions(HWND hWnd, UINT uFlags, INT nStreams, ...@@ -1447,7 +1447,7 @@ BOOL WINAPI AVISaveOptions(HWND hWnd, UINT uFlags, INT nStreams,
return AVIERR_BADPARAM; return AVIERR_BADPARAM;
/* save options in case the user presses cancel */ /* save options in case the user presses cancel */
if (ppOptions != NULL && nStreams > 1) { if (nStreams > 1) {
pSavedOptions = HeapAlloc(GetProcessHeap(), 0, nStreams * sizeof(AVICOMPRESSOPTIONS)); pSavedOptions = HeapAlloc(GetProcessHeap(), 0, nStreams * sizeof(AVICOMPRESSOPTIONS));
if (pSavedOptions == NULL) if (pSavedOptions == NULL)
return FALSE; return FALSE;
...@@ -1629,7 +1629,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler, ...@@ -1629,7 +1629,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler,
/* remember first video stream -- needed for interleaving */ /* remember first video stream -- needed for interleaving */
if (lFirstVideo < 0) if (lFirstVideo < 0)
lFirstVideo = curStream; lFirstVideo = curStream;
} else if (!dwInterleave && plpOptions != NULL) { } else if (!dwInterleave) {
/* check if any non-video stream wants to be interleaved */ /* check if any non-video stream wants to be interleaved */
WARN("options.flags=0x%X options.dwInterleave=%u\n",plpOptions[curStream]->dwFlags,plpOptions[curStream]->dwInterleaveEvery); WARN("options.flags=0x%X options.dwInterleave=%u\n",plpOptions[curStream]->dwFlags,plpOptions[curStream]->dwInterleaveEvery);
if (plpOptions[curStream] != NULL && if (plpOptions[curStream] != NULL &&
...@@ -1639,7 +1639,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler, ...@@ -1639,7 +1639,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler,
/* create de-/compressed stream interface if needed */ /* create de-/compressed stream interface if needed */
pInStreams[curStream] = NULL; pInStreams[curStream] = NULL;
if (plpOptions != NULL && plpOptions[curStream] != NULL) { if (plpOptions[curStream] != NULL) {
if (plpOptions[curStream]->fccHandler || if (plpOptions[curStream]->fccHandler ||
plpOptions[curStream]->lpFormat != NULL) { plpOptions[curStream]->lpFormat != NULL) {
DWORD dwKeySave = plpOptions[curStream]->dwKeyFrameEvery; DWORD dwKeySave = plpOptions[curStream]->dwKeyFrameEvery;
......
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