[FFmpeg-cvslog] avformat/rtmpproto: Pass rw_timeout to underlying transport protocol
Zhao Zhili
git at videolan.org
Wed Nov 22 09:39:42 EET 2023
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Wed Nov 15 21:24:35 2023 +0800| [bec6dfcd5c0b59dd6d947ec3074986aeffd525aa] | committer: Zhao Zhili
avformat/rtmpproto: Pass rw_timeout to underlying transport protocol
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bec6dfcd5c0b59dd6d947ec3074986aeffd525aa
---
libavformat/rtmpproto.c | 3 +++
1 file changed, 3 insertions(+)
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);
More information about the ffmpeg-cvslog
mailing list