[FFmpeg-cvslog] r25412 - trunk/libavformat/sdp.c
mstorsjo
subversion
Fri Oct 8 13:58:47 CEST 2010
Author: mstorsjo
Date: Fri Oct 8 13:58:47 2010
New Revision: 25412
Log:
sdp: Only specify the TTL for IPv4 addresses
According to RFC 4566, a TTL value must not be present for IPv6 multicast.
Modified:
trunk/libavformat/sdp.c
Modified: trunk/libavformat/sdp.c
==============================================================================
--- trunk/libavformat/sdp.c Fri Oct 8 10:56:36 2010 (r25411)
+++ trunk/libavformat/sdp.c Fri Oct 8 13:58:47 2010 (r25412)
@@ -56,7 +56,9 @@ static void sdp_write_address(char *buff
if (dest_addr) {
if (!dest_type)
dest_type = "IP4";
- if (ttl > 0) {
+ if (ttl > 0 && !strcmp(dest_type, "IP4")) {
+ /* The TTL should only be specified for IPv4 multicast addresses,
+ * not for IPv6. */
av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl);
} else {
av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr);
More information about the ffmpeg-cvslog
mailing list