diff --git a/libavformat/http.c b/libavformat/http.c index 64ca4ae548..3e172e3645 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); }