Skip to content

Commit

Permalink
Better.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jul 9, 2024
1 parent ca40bb3 commit e593390
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);
}

#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(60, 12, 100)
#if LIBAVFORMAT_VERSION_MAJOR < 61
static int ocaml_avio_write_callback(void *private, uint8_t *buf,
int buf_size) {
#else
Expand Down Expand Up @@ -486,7 +486,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;
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(60, 12, 100)
#if LIBAVFORMAT_VERSION_MAJOR < 61
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;
Expand Down

0 comments on commit e593390

Please sign in to comment.