From b09a092edd55ab6185db4f29cf96aa5ab85484fe Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Thu, 30 Aug 2018 14:42:00 +0200 Subject: [PATCH] lavf/libsmbclient: return AVERROR_EOF for EOF. Fix trac ticket #7387. --- libavformat/libsmbclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libsmbclient.c b/libavformat/libsmbclient.c index b68cd8bd79..3285868957 100644 --- a/libavformat/libsmbclient.c +++ b/libavformat/libsmbclient.c @@ -166,7 +166,7 @@ static int libsmbc_read(URLContext *h, unsigned char *buf, int size) return ret; } - return bytes_read; + return bytes_read ? bytes_read : AVERROR_EOF; } static int libsmbc_write(URLContext *h, const unsigned char *buf, int size)