Skip to content

Commit 71ad5c3

Browse files
authored
Declare write_packet C function as const
Otherwise llvm 17 complains
1 parent 6b20f97 commit 71ad5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/libavformat/avformat.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ cdef extern from "libavformat/avformat.h" nogil:
7979
int write_flag,
8080
void *opaque,
8181
int(*read_packet)(void *opaque, uint8_t *buf, int buf_size),
82-
int(*write_packet)(void *opaque, uint8_t *buf, int buf_size),
82+
int(*write_packet)(void *opaque, const uint8_t *buf, int buf_size),
8383
int64_t(*seek)(void *opaque, int64_t offset, int whence)
8484
)
8585

0 commit comments

Comments
 (0)