Commit a46e578d authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avio: Fix EOF handiling of ffurl_read_complete()

Fixes Ticket2537
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f48366c7
......@@ -290,7 +290,7 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int
av_usleep(1000);
}
} else if (ret < 1)
return ret < 0 ? ret : len;
return (ret < 0 && ret != AVERROR_EOF) ? ret : len;
if (ret)
fast_retries = FFMAX(fast_retries, 2);
len += ret;
......
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