Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -2635,6 +2635,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags, AVDictionary **o · 2634 unmodified lines | ||
| 2635 | 2635 | |
| 2636 | 2636 | if (rt->listen_timeout > 0) |
| 2637 | 2637 | rt->listen = 1; |
| 2638 | + /* Pass rw_timeout to underlying transport protocol */ | |
| 2639 | + if (s->rw_timeout > 0) | |
| 2640 | + av_dict_set_int(opts, "rw_timeout", s->rw_timeout, 0); | |
| 2638 | 2641 | |
| 2639 | 2642 | rt->is_input = !(flags & AVIO_FLAG_WRITE); |
| 2640 | 2643 | |