mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
quartz: Explicitly handle wave headers in avi splitter.
This commit is contained in:
parent
f53f5ebd81
commit
3ad7198961
@ -724,6 +724,15 @@ static HRESULT AVISplitter_ProcessStreamList(AVISplitterImpl * This, const BYTE
|
||||
if (pvi->bmiHeader.biCompression)
|
||||
amt.subtype.Data1 = pvi->bmiHeader.biCompression;
|
||||
}
|
||||
else if (IsEqualIID(&amt.formattype, &FORMAT_WaveFormatEx))
|
||||
{
|
||||
amt.cbFormat = pChunk->cb;
|
||||
if (amt.cbFormat < sizeof(WAVEFORMATEX))
|
||||
amt.cbFormat = sizeof(WAVEFORMATEX);
|
||||
amt.pbFormat = CoTaskMemAlloc(amt.cbFormat);
|
||||
ZeroMemory(amt.pbFormat, amt.cbFormat);
|
||||
CopyMemory(amt.pbFormat, (const BYTE *)(pChunk + 1), pChunk->cb);
|
||||
}
|
||||
else
|
||||
{
|
||||
amt.cbFormat = pChunk->cb;
|
||||
|
Loading…
Reference in New Issue
Block a user