Commit 0b20ab18 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ckidJUNK is a FOURCC not a TWOCC so rewrite the case statement

appropriately.
parent 383e06d8
......@@ -549,6 +549,14 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
else
offset_src = 0;
switch (This->CurrentChunk.fcc)
{
case ckidJUNK:
/* silently ignore */
if (S_FALSE == AVISplitter_NextChunk(&This->CurrentChunkOffset, &This->CurrentChunk, &tStart, &tStop, pbSrcStream))
bMoreData = FALSE;
continue;
default:
switch (TWOCCFromFOURCC(This->CurrentChunk.fcc))
{
case cktypeDIBcompressed:
......@@ -563,17 +571,13 @@ static HRESULT AVISplitter_Sample(LPVOID iface, IMediaSample * pSample)
case cktypePALchange:
FIXME("handle palette change\n");
break;
case ckidJUNK:
/* silently ignore */
if (S_FALSE == AVISplitter_NextChunk(&This->CurrentChunkOffset, &This->CurrentChunk, &tStart, &tStop, pbSrcStream))
bMoreData = FALSE;
continue;
default:
FIXME("Skipping unknown chunk type: %s at file offset 0x%lx\n", debugstr_an((LPSTR)&This->CurrentChunk.fcc, 4), (DWORD)BYTES_FROM_MEDIATIME(This->CurrentChunkOffset));
if (S_FALSE == AVISplitter_NextChunk(&This->CurrentChunkOffset, &This->CurrentChunk, &tStart, &tStop, pbSrcStream))
bMoreData = FALSE;
continue;
}
}
streamId = StreamFromFOURCC(This->CurrentChunk.fcc);
......
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