Message ID | 1590411623-30517-3-git-send-email-lance.lmwang@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/3] avformat/rtspdec: use av_dict_set_int() instead | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
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);