diff options
-rw-r--r-- | libavformat/libssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 9e3d4da45e..21474f0f0a 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -295,7 +295,7 @@ static int libssh_read(URLContext *h, unsigned char *buf, int size) av_log(libssh, AV_LOG_ERROR, "Read error.\n"); return AVERROR(EIO); } - return bytes_read; + return bytes_read ? bytes_read : AVERROR_EOF; } static int libssh_write(URLContext *h, const unsigned char *buf, int size) |