|
|
|
@@ -23,6 +23,7 @@ |
|
|
|
#include "libavutil/parseutils.h" |
|
|
|
#include "libavutil/random_seed.h" |
|
|
|
#include "libavutil/avstring.h" |
|
|
|
#include "libavutil/dict.h" |
|
|
|
#include "libavutil/intreadwrite.h" |
|
|
|
#include "libavutil/time.h" |
|
|
|
#include "libavutil/dict.h" |
|
|
|
@@ -160,9 +161,8 @@ static int sap_write_header(AVFormatContext *s) |
|
|
|
av_strlcpy(contexts[i]->filename, url, sizeof(contexts[i]->filename)); |
|
|
|
} |
|
|
|
|
|
|
|
if (s->nb_streams > 0 && title) { |
|
|
|
if (s->nb_streams > 0 && title) |
|
|
|
av_dict_set(&contexts[0]->metadata, "title", title->value, 0); |
|
|
|
} |
|
|
|
|
|
|
|
ff_url_join(url, sizeof(url), "udp", NULL, announce_addr, port, |
|
|
|
"?ttl=%d&connect=1", ttl); |
|
|
|
|