diff options
author | Capric <capric8416@gmail.com> | 2024-05-04 17:06:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 11:06:22 +0200 |
commit | f6f63d7ab82bd0b7f9e0ba5d9ff71a09b9d0166b (patch) | |
tree | c863dd5ac91117d30ee2a381650bd1b1ae018f4e | |
parent | 91bc8ad5edd87f8cb7cab7a61890f9b9c2236acf (diff) | |
download | mpv-examples-f6f63d7ab82bd0b7f9e0ba5d9ff71a09b9d0166b.tar.bz2 mpv-examples-f6f63d7ab82bd0b7f9e0ba5d9ff71a09b9d0166b.tar.xz |
streamcb: the file should be opened in binary mode
-rw-r--r-- | libmpv/streamcb/simple-streamcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpv/streamcb/simple-streamcb.c b/libmpv/streamcb/simple-streamcb.c index 0f904f8..ab7e057 100644 --- a/libmpv/streamcb/simple-streamcb.c +++ b/libmpv/streamcb/simple-streamcb.c @@ -44,7 +44,7 @@ static void close_fn(void *cookie) static int open_fn(void *user_data, char *uri, mpv_stream_cb_info *info) { - FILE *fp = fopen((char *)user_data, "r"); + FILE *fp = fopen((char *)user_data, "rb"); info->cookie = fp; info->size_fn = size_fn; info->read_fn = read_fn; |