From 6e911898fc2a312d40c46b9cdddfc91c5b329918 Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Mon, 25 May 2020 20:19:09 +0800 Subject: [PATCH] avformat/rtpproto: av_dict_set() -> av_dict_set_int() Signed-off-by: Limin Wang --- libavformat/rtpproto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index ca63c165e4..19e940d01e 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -301,8 +301,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags) goto fail; } if (s->ttl > 0) { - snprintf(buf, sizeof (buf), "%d", s->ttl); - av_dict_set(&fec_opts, "ttl", buf, 0); + av_dict_set_int(&fec_opts, "ttl", s->ttl, 0); } }