mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
avformat/rtmpproto: Pass rw_timeout to underlying transport protocol
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
e1d6b3cb5a
commit
bec6dfcd5c
@ -2635,6 +2635,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags, AVDictionary **o
|
||||
|
||||
if (rt->listen_timeout > 0)
|
||||
rt->listen = 1;
|
||||
/* Pass rw_timeout to underlying transport protocol */
|
||||
if (s->rw_timeout > 0)
|
||||
av_dict_set_int(opts, "rw_timeout", s->rw_timeout, 0);
|
||||
|
||||
rt->is_input = !(flags & AVIO_FLAG_WRITE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user