[FFmpeg-cvslog] avformat/rtpproto: av_dict_set() -> av_dict_set_int()

Limin Wang git at videolan.org
Tue Jun 2 17:45:55 EEST 2020


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Mon May 25 20:19:09 2020 +0800| [6e911898fc2a312d40c46b9cdddfc91c5b329918] | committer: Limin Wang

avformat/rtpproto: av_dict_set() -> av_dict_set_int()

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e911898fc2a312d40c46b9cdddfc91c5b329918
---

 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);
         }
     }
 



More information about the ffmpeg-cvslog mailing list