[FFmpeg-devel] [PATCH] SAP muxer/demuxer

Martin Storsjö martin
Wed Oct 6 20:49:26 CEST 2010


On Wed, 6 Oct 2010, Luca Barbato wrote:

> On 10/6/10 7:45 PM, Martin Storsj? wrote:
> > The content of this patch series is:
> > - Add a "connect" option to the udp protocol. In the SAP announcement, we
> > need to send the local IP address we're sending the packets from, and
> > that's not available on a normal UDP socket, only on a connected one. When
> > connected, one has to use send() instead of sendto(), and if you receive
> > "destination unreachable" ICMP packets, sends will return ECONNREFUSED.
> > Is this OK for Luca A/Ronald?
> > - Factorizing out a shared function from the RTSP muxer, that sets up a
> > chained RTP muxer given an AVStream.
> > - One patch for adding the muxer, and one for adding the demuxer.
> 
> the patchset till 3 looks simple enough, I'm not sure that if for our usage we
> couldn't just use the connected udp all the time.

For most of the time, it could work, but it does change the behaviour a 
bit, returning errors for destination unreachable, where no error was 
returned before. So I'm not totally comfortable with changing this 
behaviour for all users.

// Martin



More information about the ffmpeg-devel mailing list