If the fccHandler is mmioFOURCC(0, 0, 0, 0) the AVI is also

uncompressed.
infoPtr->hWnd wasn't updated in ANIMATE_OpenA.
This commit is contained in:
Michael Stefaniuc 2001-12-26 23:39:13 +00:00 committed by Alexandre Julliard
parent 839dfda7a9
commit 15a478f839
1 changed files with 3 additions and 1 deletions

View File

@ -616,7 +616,8 @@ static BOOL ANIMATE_GetAviCodec(ANIMATE_INFO *infoPtr)
/* check uncompressed AVI */
if ((infoPtr->ash.fccHandler == mmioFOURCC('D', 'I', 'B', ' ')) ||
(infoPtr->ash.fccHandler == mmioFOURCC('R', 'L', 'E', ' ')))
(infoPtr->ash.fccHandler == mmioFOURCC('R', 'L', 'E', ' ')) ||
(infoPtr->ash.fccHandler == mmioFOURCC(0, 0, 0, 0)))
{
infoPtr->hic = 0;
return TRUE;
@ -665,6 +666,7 @@ static LRESULT ANIMATE_OpenA(HWND hWnd, WPARAM wParam, LPARAM lParam)
HINSTANCE hInstance = (HINSTANCE)wParam;
ANIMATE_Free(infoPtr);
infoPtr->hWnd = hWnd;
if (!lParam) {
TRACE("Closing avi!\n");