avifil32: Fix type of variable used to store the result of ICCompress in AVIFILE_EncodeFrame.

(Found by PreFast.)
This commit is contained in:
Rob Shearman 2008-09-30 13:55:29 +01:00 committed by Alexandre Julliard
parent a4b2a2c380
commit 171762827c
1 changed files with 6 additions and 6 deletions

View File

@ -821,14 +821,14 @@ static HRESULT AVIFILE_EncodeFrame(IAVIStreamImpl *This,
do { do {
DWORD idxCkid = 0; DWORD idxCkid = 0;
HRESULT hr; DWORD res;
hr = ICCompress(This->hic,icmFlags,This->lpbiCur,This->lpCur,lpbi,lpBits, res = ICCompress(This->hic,icmFlags,This->lpbiCur,This->lpCur,lpbi,lpBits,
&idxCkid, &idxFlags, This->lCurrent, dwRequest, dwCurQual, &idxCkid, &idxFlags, This->lCurrent, dwRequest, dwCurQual,
noPrev ? NULL:This->lpbiPrev, noPrev ? NULL:This->lpPrev); noPrev ? NULL:This->lpbiPrev, noPrev ? NULL:This->lpPrev);
if (hr == ICERR_NEWPALETTE) { if (res == ICERR_NEWPALETTE) {
FIXME(": codec has changed palette -- unhandled!\n"); FIXME(": codec has changed palette -- unhandled!\n");
} else if (hr != ICERR_OK) } else if (res != ICERR_OK)
return AVIERR_COMPRESSOR; return AVIERR_COMPRESSOR;
/* need to check for framesize */ /* need to check for framesize */