diff options
author | Max Shakhmetov | 2011-02-15 17:49:27 +0100 |
---|---|---|
committer | Luca Barbato | 2011-02-15 18:11:50 +0100 |
commit | 9ac2085dbf1821b7995fe360038c1bf0f3940032 (patch) | |
tree | 29565eae05098feb6f74050ef2d89958f586f87d /libavformat/os_support.c | |
parent | 737eb5976f6a37703923ce3c3d5e6ca8eeabb43a (diff) |
os_support: fix poll() implementation
Our poll implementation does not iterate over the pollfd array properly
while setting the revents.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r-- | libavformat/os_support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 4f73011d65..0b7b59e77d 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -292,7 +292,7 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout) if (rc < 0) return rc; - for(i = 0; i < (nfds_t) n; i++) { + for(i = 0; i < numfds; i++) { fds[i].revents = 0; if (FD_ISSET(fds[i].fd, &read_set)) fds[i].revents |= POLLIN; |