lavf/libsmbclient: return AVERROR_EOF for EOF.

Fix trac ticket #7387.
pull/303/head^2
Nicolas George 6 years ago
parent 93b35a0555
commit b09a092edd
  1. 2
      libavformat/libsmbclient.c

@ -166,7 +166,7 @@ static int libsmbc_read(URLContext *h, unsigned char *buf, int size)
return ret; return ret;
} }
return bytes_read; return bytes_read ? bytes_read : AVERROR_EOF;
} }
static int libsmbc_write(URLContext *h, const unsigned char *buf, int size) static int libsmbc_write(URLContext *h, const unsigned char *buf, int size)

Loading…
Cancel
Save