diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-05-25 20:19:09 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-06-02 22:25:11 +0800 |
commit | 6e911898fc2a312d40c46b9cdddfc91c5b329918 (patch) | |
tree | 6c2b865b5913c8d1fcb8ceb419da7179740d56f2 | |
parent | cb14c6ff8f7bd3a0b4bf213fdfabeaedad136c5d (diff) | |
download | ffmpeg-6e911898fc2a312d40c46b9cdddfc91c5b329918.tar.gz |
avformat/rtpproto: av_dict_set() -> av_dict_set_int()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r-- | libavformat/rtpproto.c | 3 |
1 files changed, 1 insertions, 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); } } |