diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-11-15 21:24:35 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-11-22 21:02:04 +0800 |
commit | bec6dfcd5c0b59dd6d947ec3074986aeffd525aa (patch) | |
tree | 0b2e1c464e9d144136c1cd293ab6f982fc20e6be /libavformat | |
parent | e1d6b3cb5a271ac7fce35d4a96b9ab45a251c6d5 (diff) | |
download | ffmpeg-bec6dfcd5c0b59dd6d947ec3074986aeffd525aa.tar.gz |
avformat/rtmpproto: Pass rw_timeout to underlying transport protocol
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmpproto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 98718bc6da..a0c6195eb2 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -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); |