diff options
author | Nicolas George <george@nsup.org> | 2018-08-30 14:42:00 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2018-09-02 18:42:47 +0200 |
commit | 2be51cbeea352ea5fdfd3a4751f1960ba522174d (patch) | |
tree | bd7d10fe256c4795013907b33b16e6dbbe77927d | |
parent | 49a90d5d31433fc999d26f6c5d83f3d4560befee (diff) | |
download | ffmpeg-2be51cbeea352ea5fdfd3a4751f1960ba522174d.tar.gz |
lavf/libsmbclient: return AVERROR_EOF for EOF.
Fix trac ticket #7387.
-rw-r--r-- | libavformat/libsmbclient.c | 2 |
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) |