summaryrefslogtreecommitdiff
path: root/libavformat/prompeg.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-05-25 20:19:28 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-02 22:25:11 +0800
commitcca8f53a8e14a62b223c8030c7d083c37505fc95 (patch)
tree8304d564a304d829e94c606ff19712b84e105812 /libavformat/prompeg.c
parent6e911898fc2a312d40c46b9cdddfc91c5b329918 (diff)
avformat/prompeg: av_dict_set() -> av_dict_set_int()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/prompeg.c')
-rw-r--r--libavformat/prompeg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/prompeg.c b/libavformat/prompeg.c
index 9770a916a2..7b2e5e8344 100644
--- a/libavformat/prompeg.c
+++ b/libavformat/prompeg.c
@@ -291,8 +291,7 @@ static int prompeg_open(URLContext *h, const char *uri, int flags) {
}
if (s->ttl > 0) {
- snprintf(buf, sizeof (buf), "%d", s->ttl);
- av_dict_set(&udp_opts, "ttl", buf, 0);
+ av_dict_set_int(&udp_opts, "ttl", s->ttl, 0);
}
ff_url_join(buf, sizeof (buf), "udp", NULL, hostname, rtp_port + 2, NULL);