OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
737eb59
)
os_support: fix poll() implementation
author
Max Shakhmetov
<shakhmetov.max@gmail.com>
Tue, 15 Feb 2011 16:49:27 +0000
(17:49 +0100)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 15 Feb 2011 17:11:50 +0000
(18:11 +0100)
Our poll implementation does not iterate over the pollfd array properly
while setting the revents.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/os_support.c
patch
|
blob
|
history
diff --git
a/libavformat/os_support.c
b/libavformat/os_support.c
index
4f73011
..
0b7b59e
100644
(file)
--- 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;