aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-13 20:38:03 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-19 04:40:13 +0200
commit6c8f96f18b92ec312e645e4b32ae6f5010824986 (patch)
tree14fd7873a84811cd0ebead8e8b3be6434eb46e3d /libavformat/rtsp.c
parentf748ca801e7cf2803a5c410a4da511985ec9cb2c (diff)
downloadffmpeg-6c8f96f18b92ec312e645e4b32ae6f5010824986.tar.gz
avformat/rtsp: Use av_dict_set_int()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 435b0be0b8..a1aa969cad 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -122,12 +122,9 @@ static const AVOption rtp_options[] = {
static AVDictionary *map_to_opts(RTSPState *rt)
{
AVDictionary *opts = NULL;
- char buf[256];
- snprintf(buf, sizeof(buf), "%d", rt->buffer_size);
- av_dict_set(&opts, "buffer_size", buf, 0);
- snprintf(buf, sizeof(buf), "%d", rt->pkt_size);
- av_dict_set(&opts, "pkt_size", buf, 0);
+ av_dict_set_int(&opts, "buffer_size", rt->buffer_size, 0);
+ av_dict_set_int(&opts, "pkt_size", rt->pkt_size, 0);
return opts;
}