Re: [FFmpeg-devel] [PATCH v3] avformat/rtsp: introduce get_sa_len() function

2016-12-13 Thread Michael Niedermayer
On Fri, Nov 25, 2016 at 03:17:22PM +0800, Kevin Lo wrote: > Since the Linux implementation of sockaddr doesn't have sa_len as a member, > but the FreeBSD version does, introduce a get_sa_len() function that > determines the size based on the address family. > > Signed-off-by: Kevin Lo > --- > >

[FFmpeg-devel] [PATCH v3] avformat/rtsp: introduce get_sa_len() function

2016-11-24 Thread Kevin Lo
Since the Linux implementation of sockaddr doesn't have sa_len as a member, but the FreeBSD version does, introduce a get_sa_len() function that determines the size based on the address family. Signed-off-by: Kevin Lo --- v3: Check for the right feature when using a sockaddr_in6. Some systems, s