[FFmpeg-devel] [PATCH] avformat/http: remove never twice executable loop

Michael Niedermayer michaelni at gmx.at
Sat May 10 20:56:51 CEST 2014


Fixes CID1197069

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/http.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 64ca4ae..3e172e3 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -890,7 +890,6 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size)
         if (!s->chunksize) {
             char line[32];
 
-            for(;;) {
                 do {
                     if ((err = http_get_line(s, line, sizeof(line))) < 0)
                         return err;
@@ -902,8 +901,6 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size)
 
                 if (!s->chunksize)
                     return 0;
-                break;
-            }
         }
         size = FFMIN(size, s->chunksize);
     }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list