Browse Source

avformat/http: remove never twice executable loop

Fixes CID1197069

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
56193d33be
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/http.c

+ 0
- 3
libavformat/http.c View File

@@ -890,7 +890,6 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size)
if (!s->chunksize) { if (!s->chunksize) {
char line[32]; char line[32];


for(;;) {
do { do {
if ((err = http_get_line(s, line, sizeof(line))) < 0) if ((err = http_get_line(s, line, sizeof(line))) < 0)
return err; return err;
@@ -902,8 +901,6 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size)


if (!s->chunksize) if (!s->chunksize)
return 0; return 0;
break;
}
} }
size = FFMIN(size, s->chunksize); size = FFMIN(size, s->chunksize);
} }


Loading…
Cancel
Save