Browse Source

lavf/libsmbclient: return AVERROR_EOF for EOF.

Fix trac ticket #7387.
tags/n4.1
Nicolas George 6 years ago
parent
commit
b09a092edd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/libsmbclient.c

+ 1
- 1
libavformat/libsmbclient.c 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)


Loading…
Cancel
Save