Skip to content

Commit

Permalink
Make this conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jul 9, 2024
1 parent 3ef558d commit 24807ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions av/av_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,11 @@ 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;
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(60, 12, 100)
int (*write_cb)(void *opaque, uint8_t *buf, int buf_size) = NULL;
#else
int (*write_cb)(void *opaque, const uint8_t *buf, int buf_size) = NULL;
#endif
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 24807ee

Please sign in to comment.