Skip to content

Commit

Permalink
Fix one more warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Apr 30, 2024
1 parent d36052b commit 163744b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions av/av_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static int ocaml_avio_read_callback(void *private, uint8_t *buf, int buf_size) {
return Int_val(res);
}

static int ocaml_avio_write_callback(void *private, uint8_t *buf,
static int ocaml_avio_write_callback(void *private, const uint8_t *buf,
int buf_size) {
value buffer, res;
avio_t *avio = (avio_t *)private;
Expand Down Expand Up @@ -481,7 +481,7 @@ CAMLprim value ocaml_av_create_io(value bufsize, value _read_cb,
CAMLlocal1(ret);

int (*read_cb)(void *opaque, uint8_t *buf, int buf_size) = NULL;
int (*write_cb)(void *opaque, uint8_t *buf, int buf_size) = NULL;
int (*write_cb)(void *opaque, const uint8_t *buf, int buf_size) = NULL;
int64_t (*seek_cb)(void *opaque, int64_t offset, int whence) = NULL;
int write_flag = 0;
unsigned char *buffer;
Expand Down

0 comments on commit 163744b

Please sign in to comment.