Mercurial > libavformat.hg
comparison movenc.c @ 6405:1f6088eaa469 libavformat
Properly handle IPv6 addresses in the SDP generation
author | mstorsjo |
---|---|
date | Wed, 25 Aug 2010 12:29:32 +0000 |
parents | f2ad554b2464 |
children | 317dedc6b9a2 |
comparison
equal
deleted
inserted
replaced
6404:37944ce385a0 | 6405:1f6088eaa469 |
---|---|
1261 static int mov_write_udta_sdp(ByteIOContext *pb, AVCodecContext *ctx, int index) | 1261 static int mov_write_udta_sdp(ByteIOContext *pb, AVCodecContext *ctx, int index) |
1262 { | 1262 { |
1263 char buf[1000] = ""; | 1263 char buf[1000] = ""; |
1264 int len; | 1264 int len; |
1265 | 1265 |
1266 ff_sdp_write_media(buf, sizeof(buf), ctx, NULL, 0, 0); | 1266 ff_sdp_write_media(buf, sizeof(buf), ctx, NULL, NULL, 0, 0); |
1267 av_strlcatf(buf, sizeof(buf), "a=control:streamid=%d\r\n", index); | 1267 av_strlcatf(buf, sizeof(buf), "a=control:streamid=%d\r\n", index); |
1268 len = strlen(buf); | 1268 len = strlen(buf); |
1269 | 1269 |
1270 put_be32(pb, len + 24); | 1270 put_be32(pb, len + 24); |
1271 put_tag (pb, "udta"); | 1271 put_tag (pb, "udta"); |