[FFmpeg-cvslog] lavf/libsmbclient: return AVERROR_EOF for EOF.

Nicolas George git at videolan.org
Sun Sep 2 19:41:21 EEST 2018


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Thu Aug 30 14:42:00 2018 +0200| [b09a092edd55ab6185db4f29cf96aa5ab85484fe] | committer: Nicolas George

lavf/libsmbclient: return AVERROR_EOF for EOF.

Fix trac ticket #7387.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b09a092edd55ab6185db4f29cf96aa5ab85484fe
---

 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)



More information about the ffmpeg-cvslog mailing list