[FFmpeg-devel] [PATCH] avformat/tls_schannel: fix the return value on EOF

wm4 nfxjfg at googlemail.com
Wed Apr 18 19:53:47 EEST 2018


On Wed, 18 Apr 2018 14:10:03 +0200
Hendrik Leppkes <h.leppkes at gmail.com> wrote:

> ---
>  libavformat/tls_schannel.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c
> index 9a6e0c92e3..3986b88667 100644
> --- a/libavformat/tls_schannel.c
> +++ b/libavformat/tls_schannel.c
> @@ -515,7 +515,7 @@ cleanup:
>      if (ret == 0 && !c->connection_closed)
>          ret = AVERROR(EAGAIN);
>  
> -    return ret < 0 ? ret : 0;
> +    return ret < 0 ? ret : AVERROR_EOF;
>  }
>  
>  static int tls_write(URLContext *h, const uint8_t *buf, int len)

Maybe we should consider reverting this whole avio EOF change for the
release? So many breakages...


More information about the ffmpeg-devel mailing list