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

Michael Niedermayer git at videolan.org
Wed May 14 21:41:29 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 10 20:46:00 2014 +0200| [56193d33be93669f948ccd68ea2451fb24b91245] | committer: Michael Niedermayer

avformat/http: remove never twice executable loop

Fixes CID1197069

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

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

 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);
     }



More information about the ffmpeg-cvslog mailing list