[FFmpeg-cvslog] ffserver: minor formatting improvement to http_server()

Reynaldo H. Verdejo Pinochet git at videolan.org
Fri Dec 26 23:05:00 CET 2014


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> | Fri Dec 26 18:34:52 2014 -0300| [114622369939f0a6a9794d273e6c5adad17a437c] | committer: Reynaldo H. Verdejo Pinochet

ffserver: minor formatting improvement to http_server()

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=114622369939f0a6a9794d273e6c5adad17a437c
---

 ffserver.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index beda07a..7ddacd2 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -550,8 +550,11 @@ static int http_server(void)
     struct pollfd *poll_table, *poll_entry;
     HTTPContext *c, *c_next;
 
-    if(!(poll_table = av_mallocz_array(config.nb_max_http_connections + 2, sizeof(*poll_table)))) {
-        http_log("Impossible to allocate a poll table handling %d connections.\n", config.nb_max_http_connections);
+    poll_table = av_mallocz_array(config.nb_max_http_connections + 2,
+                                  sizeof(*poll_table));
+    if(!poll_table) {
+        http_log("Impossible to allocate a poll table handling %d "
+                 "connections.\n", config.nb_max_http_connections);
         return -1;
     }
 



More information about the ffmpeg-cvslog mailing list