[FFmpeg-devel] [PATCH] avformat/tls_schannel: fix the return value on EOF
Jan Ekström
jeebjp at gmail.com
Wed Apr 18 21:31:28 EEST 2018
On Wed, Apr 18, 2018 at 3:10 PM, 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)
> --
> 2.16.1.windows.4
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
I think I was hit by this before. LGTM.
Jan
More information about the ffmpeg-devel
mailing list