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)
|
if (pvi->bmiHeader.biCompression)
|
||||||
amt.subtype.Data1 = 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
|
else
|
||||||
{
|
{
|
||||||
amt.cbFormat = pChunk->cb;
|
amt.cbFormat = pChunk->cb;
|
||||||
|
|
Loading…
Reference in New Issue