[Live-devel] [Mirasys] Live555 RTSP server questions

Ross Finlayson finlayson at live555.com
Tue Jan 25 23:54:15 PST 2022



> On Jan 26, 2022, at 8:43 PM, Victor Vitkovskiy <victor.vitkovskiy at mirasys.com> wrote:
> 
> Hello Ross, 
> 
> I have one question regarding the copying data to output buffer when I am implementing own FramedSource.
> There is an fTo buffer that has a maximum size fMaxSize, this fMaxSize is taken from OutPacketBuffer::maxSize value. 
> 
> So, the question is - can I change this buffer size dynamically? 

No.  “fMaxSize” is set by the downstream object when it calls “getNextFrame()” (and thus “doGetNextFrame()”).  It is the maximum size of data that the downstream object is prepared to receive.  Therefore, it should be treated as an “in” value by each implementation of “doGetNextFrame()”, and this implementation of “doGetNextFrame()” should never transfer more data than this.  (Instead, it should set “fFrameSize” to “fMaxSize”, transfer only this amount of data, and set “fNumTruncatedBytes” to the remaining count of (untransferred) bytes.


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




More information about the live-devel mailing list