avformat/http: remove never twice executable loop
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 10 May 2014 18:46:00 +0000 (20:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 14 May 2014 18:44:15 +0000 (20:44 +0200)
Fixes CID1197069

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/http.c

index 64ca4ae..3e172e3 100644 (file)
@@ -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);
     }