libavformat/http: return EIO when ffurl_read return 0, but s->off < target_end

Approved-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/262/head
raymondzheng 8 years ago committed by Michael Niedermayer
parent 2336c76b22
commit 9f20cc5c84
  1. 2
      libavformat/http.c

@ -1326,7 +1326,7 @@ static int http_buf_read(URLContext *h, uint8_t *buf, int size)
}
if (len > 0) {
s->off += len;
if (s->chunksize > 0) {
if (s->chunksize > 0 && s->chunksize != UINT64_MAX) {
av_assert0(s->chunksize >= len);
s->chunksize -= len;
}

Loading…
Cancel
Save