> On Nov 15, 2023, at 21:24, Zhao Zhili <quinkbl...@foxmail.com> wrote:
>
> From: Zhao Zhili <zhiliz...@tencent.com>
>
> Signed-off-by: Zhao Zhili <zhiliz...@tencent.com>
> ---
> 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);
OK, I made a mistake. Since ffurl_open_whitelist copy from parent automatically,
this is a NOP. Will revert this commit.
>
> rt->is_input = !(flags & AVIO_FLAG_WRITE);
>
> --
> 2.42.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".