quartz: Skip over INFO chunk in AVI file parsing.
This commit is contained in:
parent
a7ca25aa20
commit
bc06d70770
|
@ -550,7 +550,7 @@ static HRESULT AVISplitter_InputPin_PreConnect(IPin * iface, IPin * pConnectPin)
|
|||
pos += sizeof(RIFFCHUNK) + list.cb;
|
||||
hr = IAsyncReader_SyncRead(This->pReader, pos, sizeof(list), (BYTE *)&list);
|
||||
|
||||
if (list.fcc == ckidJUNK)
|
||||
while (list.fcc == ckidJUNK || (list.fcc == ckidLIST && list.fccListType == ckidINFO))
|
||||
{
|
||||
pos += sizeof(RIFFCHUNK) + list.cb;
|
||||
hr = IAsyncReader_SyncRead(This->pReader, pos, sizeof(list), (BYTE *)&list);
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#define ckidRIFF aviFCC('R','I','F','F')
|
||||
#define ckidLIST aviFCC('L','I','S','T')
|
||||
#define ckidJUNK aviFCC('J','U','N','K')
|
||||
#define ckidINFO aviFCC('I','N','F','O')
|
||||
#define ckidHEADERLIST aviFCC('h','d','r','l')
|
||||
#define ckidAVIMOVIE aviFCC('m','o','v','i')
|
||||
#define ckidSTREAMNAME aviFCC('s','t','r','n')
|
||||
|
|
Loading…
Reference in New Issue