diff --git a/libavformat/network.c b/libavformat/network.c index 7a326d2c4e..2fb1c8b02a 100644 --- a/libavformat/network.c +++ b/libavformat/network.c @@ -75,7 +75,7 @@ int ff_network_wait_fd(int fd, int write) int ev = write ? POLLOUT : POLLIN; struct pollfd p = { .fd = fd, .events = ev, .revents = 0 }; int ret; - ret = poll(&p, 1, 100); + ret = poll(&p, 1, POLLING_TIME); return ret < 0 ? ff_neterrno() : p.revents & (ev | POLLERR | POLLHUP) ? 0 : AVERROR(EAGAIN); }