mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 08:42:39 +00:00
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>
This commit is contained in:
parent
973de9ebf8
commit
56193d33be
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user