From 56193d33be93669f948ccd68ea2451fb24b91245 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 10 May 2014 20:46:00 +0200 Subject: [PATCH] avformat/http: remove never twice executable loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes CID1197069 Reviewed-by: Tomas Härdin Signed-off-by: Michael Niedermayer --- libavformat/http.c | 3 --- 1 file changed, 3 deletions(-) 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); }