summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/udp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index f93c607..c1973a0 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -549,6 +549,8 @@ static int udp_open(URLContext *h, const char *uri, int flags)
break;
}
}
+ if (!is_output && av_find_info_tag(buf, sizeof(buf), "timeout", p))
+ h->rw_timeout = strtol(buf, NULL, 10);
}
/* fill the dest addr */
OpenPOWER on IntegriCloud