1
0
Fork 0

avformat/rtmpproto: Pass rw_timeout to underlying transport protocol

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili 2023-11-15 21:24:35 +08:00
parent e1d6b3cb5a
commit bec6dfcd5c
1 changed files with 3 additions and 0 deletions

View File

@ -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);