aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtspdec.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-05-25 20:18:49 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-02 22:25:11 +0800
commitcb14c6ff8f7bd3a0b4bf213fdfabeaedad136c5d (patch)
tree83e2b8d6b5c323baae3d75af05f936ed7ebc2fd4 /libavformat/rtspdec.c
parentfb17ba86a871b858069472d4afd8509732d58e49 (diff)
downloadffmpeg-cb14c6ff8f7bd3a0b4bf213fdfabeaedad136c5d.tar.gz
avformat/rtspdec: av_dict_set() -> av_dict_set_int()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r--libavformat/rtspdec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index bd2e8f47f1..dfa29913bf 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -289,9 +289,7 @@ static int rtsp_read_setup(AVFormatContext *s, char* host, char *controlurl)
} else {
do {
AVDictionary *opts = NULL;
- char buf[256];
- snprintf(buf, sizeof(buf), "%d", rt->buffer_size);
- av_dict_set(&opts, "buffer_size", buf, 0);
+ av_dict_set_int(&opts, "buffer_size", rt->buffer_size, 0);
ff_url_join(url, sizeof(url), "rtp", NULL, host, localport, NULL);
av_log(s, AV_LOG_TRACE, "Opening: %s", url);
ret = ffurl_open_whitelist(&rtsp_st->rtp_handle, url, AVIO_FLAG_READ_WRITE,