]> git.sesse.net Git - ffmpeg/commitdiff
avformat/prompeg: av_dict_set() -> av_dict_set_int()
authorLimin Wang <lance.lmwang@gmail.com>
Mon, 25 May 2020 12:19:28 +0000 (20:19 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Tue, 2 Jun 2020 14:25:11 +0000 (22:25 +0800)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavformat/prompeg.c

index 9770a916a2ba43cd50f991804d8cdcaf5c0700fd..7b2e5e8344a45af1cf8833820c6e0304b3b76083 100644 (file)
@@ -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);