mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avformat/rtspdec: av_dict_set() -> av_dict_set_int()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
fb17ba86a8
commit
cb14c6ff8f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user