[FFmpeg-devel] [PATCH] libavformat: not treat 0 as EOF

Michael Niedermayer michael at niedermayer.cc
Tue Oct 17 22:36:24 EEST 2017


On Tue, Oct 17, 2017 at 10:29:30AM +0200, Daniel Kucera wrote:
> 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 at gmail.com>
> ---
>  libavformat/avio.c    |  6 ++++--
>  libavformat/aviobuf.c | 20 ++++++++++++--------
>  libavformat/cache.c   |  4 ++--
>  libavformat/concat.c  |  9 +++++----
>  libavformat/http.c    |  5 ++++-
>  5 files changed, 27 insertions(+), 17 deletions(-)

Seems to work, no more comments from me

thanks


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171017/5cae952f/attachment.sig>


More information about the ffmpeg-devel mailing list