quartz: Data may be incomplete at the end of file so do not assert if we have less data than expected.
This commit is contained in:
parent
7788c8ed0d
commit
74c07a141e
|
@ -176,7 +176,6 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, IMediaSample *pCurrentSample)
|
||||||
|
|
||||||
/* Find the next valid header.. it <SHOULD> be right here */
|
/* Find the next valid header.. it <SHOULD> be right here */
|
||||||
assert(parse_header(fbuf, &length, &This->position) == S_OK);
|
assert(parse_header(fbuf, &length, &This->position) == S_OK);
|
||||||
assert(length == len || length + 4 == len);
|
|
||||||
IMediaSample_SetActualDataLength(pCurrentSample, length);
|
IMediaSample_SetActualDataLength(pCurrentSample, length);
|
||||||
|
|
||||||
/* Queue the next sample */
|
/* Queue the next sample */
|
||||||
|
|
Loading…
Reference in New Issue