You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avformat/rtmpproto: Pass rw_timeout to underlying transport protocol
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@ -2635,6 +2635,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags, AVDictionary **o
|
|||||||
|
|
||||||
if (rt->listen_timeout > 0)
|
if (rt->listen_timeout > 0)
|
||||||
rt->listen = 1;
|
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);
|
rt->is_input = !(flags & AVIO_FLAG_WRITE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user