Commit 56193d33 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/http: remove never twice executable loop

Fixes CID1197069
Reviewed-by: 's avatarTomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 973de9eb
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment