[Live-devel] mplayer not playing stream

Ross Finlayson finlayson at live555.com
Thu Apr 19 17:39:17 PDT 2012


> I had tried to neglect the first 4 bytes from the encoded buffer, but it did not helped, I had adjusted the fFrameSize accordingly.
>  
> Can you please provide me with the pseudo code for handling this.

Oh for heaven's sake...

In your 'data source' class (i.e., your subclass of "FramedSource"), you will currently be doing something like:

	fFrameSize = size_of_nal_unit;
	memmove(fTo, ptr_to_start_of_nal_unit, fFrameSize);

Change this to:

	fFrameSize = size_of_nal_unit - 4;
	memmove(fTo, ptr_to_start_of_nal_unit + 4, fFrameSize);


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120420/7e19fdc9/attachment-0001.html>


More information about the live-devel mailing list