Fixes for compatibility.

This commit is contained in:
Hidenori Takeshima 2002-02-19 18:29:54 +00:00 committed by Alexandre Julliard
parent 824b94c55f
commit b5cb1a347a
2 changed files with 7 additions and 6 deletions

View File

@ -351,8 +351,8 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream*iface,LONG start,LONG samples
return S_OK; return S_OK;
} }
/* FIXME - is this data valid??? */ /* FIXME - no audio support. */
dwFrameLength = pIndexEntry[start].dwChunkLength + sizeof(DWORD)*2; dwFrameLength = pIndexEntry[start].dwChunkLength;
if ( buffer == NULL ) if ( buffer == NULL )
{ {
@ -368,7 +368,7 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream*iface,LONG start,LONG samples
hr = AVIFILE_IAVIFile_ReadMovieData( hr = AVIFILE_IAVIFile_ReadMovieData(
This->paf, This->paf,
pIndexEntry[start].dwChunkOffset, pIndexEntry[start].dwChunkOffset + sizeof(DWORD)*2,
dwFrameLength, buffer ); dwFrameLength, buffer );
if ( hr != S_OK ) if ( hr != S_OK )
{ {

View File

@ -120,10 +120,11 @@ static LPVOID AVIFILE_IGetFrame_DecodeFrame(IGetFrameImpl* This,LONG lPos)
This->pbiICIn->bmiHeader.biSizeImage = lFrameLength; This->pbiICIn->bmiHeader.biSizeImage = lFrameLength;
TRACE( "call ICM_DECOMPRESS\n" ); TRACE( "call ICM_DECOMPRESS\n" );
icd.dwFlags = (*(BYTE*)This->pvICInDataBuf) == 'c' ? icd.dwFlags = 0;
ICDECOMPRESS_NOTKEYFRAME : 0; if ( IAVIStream_FindSample(This->pas,lPos,FIND_PREV|FIND_KEY) != lPos )
icd.dwFlags = ICDECOMPRESS_NOTKEYFRAME;
icd.lpbiInput = &This->pbiICIn->bmiHeader; icd.lpbiInput = &This->pbiICIn->bmiHeader;
icd.lpInput = (BYTE*)This->pvICInDataBuf + 8; icd.lpInput = (BYTE*)This->pvICInDataBuf;
icd.lpbiOutput = &This->pbiICOut->bmiHeader; icd.lpbiOutput = &This->pbiICOut->bmiHeader;
icd.lpOutput = This->pvICOutBits; icd.lpOutput = This->pvICOutBits;
icd.ckid = *((DWORD*)This->pvICInDataBuf); icd.ckid = *((DWORD*)This->pvICInDataBuf);