lavf/libsmbclient: return AVERROR_EOF for EOF.
authorNicolas George <george@nsup.org>
Thu, 30 Aug 2018 12:42:00 +0000 (14:42 +0200)
committerNicolas George <george@nsup.org>
Sun, 2 Sep 2018 16:37:09 +0000 (18:37 +0200)
Fix trac ticket #7387.

libavformat/libsmbclient.c

index b68cd8b..3285868 100644 (file)
@@ -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)