os_support: Don't compare a negative number against socket descriptors
authorMartin Storsjö <martin@martin.st>
Sun, 24 Jun 2012 19:36:37 +0000 (22:36 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 30 Jun 2012 12:17:52 +0000 (15:17 +0300)
commit71078ad3338d850a24071e93b69d2109a943f73e
tree300a2a8e4ea85075a6beb6f5205b62a054b2848e
parent5aff37d28d6a140f70f6cae996e6f55b21b1106d
os_support: Don't compare a negative number against socket descriptors

The fds are unsigned integers in the windows definition of struct
sockfds. Due to this, the comparison if (fds[i].fd > n) was always
false.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/os_support.c