diff options
author | Martin Storsjö <martin@martin.st> | 2010-08-25 12:34:42 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-08-25 12:34:42 +0000 |
commit | cc83027c671ef1ca026aa6b646b70b9df258287d (patch) | |
tree | b8e92a977d8aeaa6969fe60525c5cf3202481294 | |
parent | 7ad1dc54479117163b3dbe0fb7edd854288a9eb1 (diff) | |
download | ffmpeg-cc83027c671ef1ca026aa6b646b70b9df258287d.tar.gz |
Reindent, rewrap lines
Originally committed as revision 24916 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/sdp.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 7ba90aec1c..4e07e6bc5e 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -95,11 +95,11 @@ static void resolve_destination(char *dest_addr, int size, char *type, if (getaddrinfo(dest_addr, NULL, &hints, &ai)) return; for (cur = ai; cur; cur = cur->ai_next) { - getnameinfo(cur->ai_addr, cur->ai_addrlen, dest_addr, size, - NULL, 0, NI_NUMERICHOST); - if (cur->ai_family == AF_INET6) - av_strlcpy(type, "IP6", type_size); - break; + getnameinfo(cur->ai_addr, cur->ai_addrlen, dest_addr, size, + NULL, 0, NI_NUMERICHOST); + if (cur->ai_family == AF_INET6) + av_strlcpy(type, "IP6", type_size); + break; } freeaddrinfo(ai); } @@ -497,8 +497,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) for (j = 0; j < ac[i]->nb_streams; j++) { ff_sdp_write_media(buff, size, ac[i]->streams[j]->codec, dst[0] ? dst : NULL, - dst_type, - (port > 0) ? port + j * 2 : 0, ttl); + dst_type, (port > 0) ? port + j * 2 : 0, ttl); if (port <= 0) { av_strlcatf(buff, size, "a=control:streamid=%d\r\n", i + j); |