lavf/libsmbclient: return AVERROR_EOF for EOF.

Fix trac ticket #7387.
This commit is contained in:
Nicolas George 2018-08-30 14:42:00 +02:00
parent 93b35a0555
commit b09a092edd
1 changed files with 1 additions and 1 deletions

View 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)