[FFmpeg-cvslog] r15238 - trunk/ffserver.c
bcoudurier
subversion
Sun Sep 7 06:16:05 CEST 2008
Author: bcoudurier
Date: Sun Sep 7 06:16:05 2008
New Revision: 15238
Log:
100l, compute correctly poll_table size when allocating
Modified:
trunk/ffserver.c
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c (original)
+++ trunk/ffserver.c Sun Sep 7 06:16:05 2008
@@ -545,7 +545,7 @@ static int http_server(void)
struct pollfd *poll_table, *poll_entry;
HTTPContext *c, *c_next;
- if(!(poll_table = av_mallocz(nb_max_http_connections + 2))) {
+ if(!(poll_table = av_mallocz((nb_max_http_connections + 2)*sizeof(*poll_table)))) {
http_log("Impossible to allocate a poll table handling %d connections.\n", nb_max_http_connections);
return -1;
}
More information about the ffmpeg-cvslog
mailing list