mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Fixes for compatibility.
This commit is contained in:
parent
824b94c55f
commit
b5cb1a347a
2 changed files with 7 additions and 6 deletions
|
@ -351,8 +351,8 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream*iface,LONG start,LONG samples
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
/* FIXME - is this data valid??? */
|
||||
dwFrameLength = pIndexEntry[start].dwChunkLength + sizeof(DWORD)*2;
|
||||
/* FIXME - no audio support. */
|
||||
dwFrameLength = pIndexEntry[start].dwChunkLength;
|
||||
|
||||
if ( buffer == NULL )
|
||||
{
|
||||
|
@ -368,7 +368,7 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream*iface,LONG start,LONG samples
|
|||
|
||||
hr = AVIFILE_IAVIFile_ReadMovieData(
|
||||
This->paf,
|
||||
pIndexEntry[start].dwChunkOffset,
|
||||
pIndexEntry[start].dwChunkOffset + sizeof(DWORD)*2,
|
||||
dwFrameLength, buffer );
|
||||
if ( hr != S_OK )
|
||||
{
|
||||
|
|
|
@ -120,10 +120,11 @@ static LPVOID AVIFILE_IGetFrame_DecodeFrame(IGetFrameImpl* This,LONG lPos)
|
|||
This->pbiICIn->bmiHeader.biSizeImage = lFrameLength;
|
||||
|
||||
TRACE( "call ICM_DECOMPRESS\n" );
|
||||
icd.dwFlags = (*(BYTE*)This->pvICInDataBuf) == 'c' ?
|
||||
ICDECOMPRESS_NOTKEYFRAME : 0;
|
||||
icd.dwFlags = 0;
|
||||
if ( IAVIStream_FindSample(This->pas,lPos,FIND_PREV|FIND_KEY) != lPos )
|
||||
icd.dwFlags = ICDECOMPRESS_NOTKEYFRAME;
|
||||
icd.lpbiInput = &This->pbiICIn->bmiHeader;
|
||||
icd.lpInput = (BYTE*)This->pvICInDataBuf + 8;
|
||||
icd.lpInput = (BYTE*)This->pvICInDataBuf;
|
||||
icd.lpbiOutput = &This->pbiICOut->bmiHeader;
|
||||
icd.lpOutput = This->pvICOutBits;
|
||||
icd.ckid = *((DWORD*)This->pvICInDataBuf);
|
||||
|
|
Loading…
Reference in a new issue