]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/libssh.c
doc/APIchanges: add hashes and version numbers for recent entries
[ffmpeg] / libavformat / libssh.c
index 9e3d4da45eff0e471ea1661aa03bee63d232bad5..21474f0f0a59ab95f0f494a50eb28908af67d56b 100644 (file)
@@ -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)