[Live-devel] fMaxSize variable

Ross Finlayson finlayson at live.com
Thu May 13 10:29:01 PDT 2004


>When I fill the streaming buffer until BANK_SIZE,
>
>why doesn't testMPEG1or2Streamer deliver
>fTotNumValidBytes = 119 (*)  bytes?
>
>(Maybe...Because 199 bytes aren't a last full (slice)
>frame)

Yes, probably.  The remaining 119 (sic) bytes in the bank weren't enough to 
complete parsing a complete <whatever> (depending on what is using 
StreamParser), so (i) these remaining bytes were moved to the start of the 
other bank, (ii) a read operation is scheduled to fill up the rest of this 
bank, and (iii) a (C++ language) exception is thrown, to tell the parsing 
code (that's using StreamParser) that the parsing got interrupted, and will 
get restarted later.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list