Message ID | 1590577847-24670-2-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [FFmpeg-devel,v2,1/3] avformat/rtspdec: av_dict_set() -> av_dict_set_int() | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index ca63c16..19e940d 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); } }