aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2018-08-30 14:42:00 +0200
committerNicolas George <george@nsup.org>2018-09-02 18:37:09 +0200
commitb09a092edd55ab6185db4f29cf96aa5ab85484fe (patch)
treeb408870212e8687c2cff34e8cf25f53244f1c6c6
parent93b35a0555355ad6fe7a24b2a39b8d364f3403f8 (diff)
downloadffmpeg-b09a092edd55ab6185db4f29cf96aa5ab85484fe.tar.gz
lavf/libsmbclient: return AVERROR_EOF for EOF.
Fix trac ticket #7387.
-rw-r--r--libavformat/libsmbclient.c2
1 files changed, 1 insertions, 1 deletions
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)