[Live-devel] HD Frames

Ross Finlayson finlayson at live555.com
Thu Dec 13 13:33:39 PST 2007


>my application stopped at this point:
>
>MyH264VideoStreamFramer::doGetNextFrame(){
>
>         getPayload();            // loading RTP payload information on
>pszBuff
>         fMaxSize=1000000;

There's your problem.  "fMaxSize" is an 'in' parameter.  It is 
specified by the downstream object, and is the (maximum) size of the 
buffer that you can write into.  You do not set it yourself.

Your code should look something like:

	fFrameSize=frameSize;
	if (fFrameSize > fMaxSize) {
		fNumTruncatedBytes = fFrameSize - fMaxSize;
		fFrameSize = fMaxSize;
	}
	memcpy(fTo,pszBuff,fFrameSize);
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list