X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtspdec.c;h=dfa29913bff0185032846f7855296e0efee89ca8;hb=6e951d0cf8dcbc98cb45b9a72ed8d9e76f4a2e3f;hp=32dff2319c51f7bf0c71f0420cfa0dff1281f774;hpb=23ce57af3ad684363881cdd66d5724f40963a65c;p=ffmpeg diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 32dff2319c5..dfa29913bff 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, @@ -699,7 +697,7 @@ static int rtsp_listen(AVFormatContext *s) } } -static int rtsp_probe(AVProbeData *p) +static int rtsp_probe(const AVProbeData *p) { if ( #if CONFIG_TLS_PROTOCOL