X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Flibssh.c;h=21474f0f0a59ab95f0f494a50eb28908af67d56b;hb=e37741d26a1ef2d07e2ccf4e1bc9699a12576111;hp=9e3d4da45eff0e471ea1661aa03bee63d232bad5;hpb=75bf51ef87f4cb5afca701b33bf22339d8a4db24;p=ffmpeg diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 9e3d4da45ef..21474f0f0a5 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)