libavformat: not treat 0 as EOF
authorDaniel Kucera <daniel.kucera@gmail.com>
Tue, 17 Oct 2017 08:29:30 +0000 (10:29 +0200)
committerNicolas George <george@nsup.org>
Thu, 19 Oct 2017 20:07:21 +0000 (22:07 +0200)
commit858db4b01fa2b55ee55056c033054ca54ac9b0fd
tree5a29252c4545b4ff80bb0beead0628812d0b73b9
parentf4090940bd3024e69d236257d327f11d1e496229
libavformat: not treat 0 as EOF

transfer_func variable passed to retry_transfer_wrapper
are h->prot->url_read and h->prot->url_write functions.
These need to return EOF or other error properly.
In case of returning >= 0, url_read/url_write is retried
until error is returned.

Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
libavformat/avio.c
libavformat/aviobuf.c
libavformat/cache.c
libavformat/concat.c
libavformat/http.c