[FFmpeg-cvslog] lavf/libsmbclient: return AVERROR_EOF for EOF.
Nicolas George
git at videolan.org
Sun Sep 2 19:43:20 EEST 2018
ffmpeg | branch: release/4.0 | Nicolas George <george at nsup.org> | Thu Aug 30 14:42:00 2018 +0200| [2be51cbeea352ea5fdfd3a4751f1960ba522174d] | 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=2be51cbeea352ea5fdfd3a4751f1960ba522174d
---
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