[FFmpeg-devel] [PATCH] The fail safe label fail1 should return -1, not 0.

canaar canaar at openmailbox.org
Mon Nov 9 06:57:54 CET 2015


---
 ffserver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffserver.c b/ffserver.c
index 1d4c8dc..bb89d53 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2425,7 +2425,7 @@ static int http_send_data(HTTPContext *c)
                     /* fail safe - should never happen */
                 fail1:
                     c->buffer_ptr = c->buffer_end;
-                    return 0;
+                    return -1; /*Fail condition. Return -1*/
                 }
                 len = (c->buffer_ptr[0] << 24) |
                     (c->buffer_ptr[1] << 16) |
-- 
2.4.0.GIT



More information about the ffmpeg-devel mailing list