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:
parent
839dfda7a9
commit
15a478f839
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue