[libav-devel] [PATCH] rtpdec: Add ff_ prefix to all nonstatic symbols

Martin Storsjö martin at martin.st
Wed Oct 12 14:37:01 CEST 2011


On Wed, 12 Oct 2011, Luca Barbato wrote:

> On 10/12/11 2:25 PM, Martin Storsjö wrote:
>> Actually, you should be able to do what you want to do in feng with the
>> public APIs already. What you want to do is RTP packetization and
>> perhaps also sending the data over UDP, right?
>
> No =) I'd like to use the rtp packetizers but keep the network part on my 
> side.

Ok, well that should be exactly what the RTSP muxer does for TCP 
interleaved sending - once you've got the packetized data, you can do 
whatever you want with it :-)

>> That's possible with the RTP muxer interface. The RTSP muxer does this
>> using only the public APIs - for sending data over UDP, it opens one RTP
>> muxer and one rtp:// AVIOContext for each stream, and just writes data
>> using that.
>> For sending data over TCP, it uses the RTP muxer in the same way, but uses
>> avio_dyn_buf for getting a custom AVIOContext that you can extract the
>> data from later, and send it in any TCP socket.
>
> That might work up to a point but there are some pitfalls =\

Hmm, I don't know of any such - it works well for the RTSP muxer at least 
afaik.

>> (Actually, it seems to be using ffio_open_dyn_packet_buf which has
>> become private in the avio remodelling, but we can either make that a
>> public function, or you can do the same yourself with a bit of custom
>> AVIOContext callbacks.)
>
> Yes, some part of ffio will need to be public again to do such stuff ^^;

Yeah - most of it is public, except for that three line function.

// Martin


More information about the libav-devel mailing list