Commit f66ad4db authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Make the avi splitter skip index headers.

parent 64be38a5
......@@ -138,6 +138,7 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
WORD streamId;
Parser_OutputPin * pOutputPin;
BOOL bSyncPoint = TRUE;
BYTE *fcc = (BYTE *)&This->CurrentChunk.fcc;
if (This->CurrentChunkOffset >= tStart)
offset_src = (long)BYTES_FROM_MEDIATIME(This->CurrentChunkOffset - tStart) + sizeof(RIFFCHUNK);
......@@ -196,6 +197,13 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
#endif
}
if (fcc[0] == 'i' && fcc[1] == 'x')
{
if (S_FALSE == AVISplitter_NextChunk(&This->CurrentChunkOffset, &This->CurrentChunk, &tStart, &tStop, pbSrcStream, FALSE))
bMoreData = FALSE;
continue;
}
streamId = StreamFromFOURCC(This->CurrentChunk.fcc);
if (streamId > This->Parser.cStreams)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment