Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue with GCC14 #9

Open
FabioLolix opened this issue Sep 15, 2024 · 0 comments
Open

Build issue with GCC14 #9

FabioLolix opened this issue Sep 15, 2024 · 0 comments

Comments

@FabioLolix
Copy link

Hello, build issue with GCC14, is affected the bundled ffmpeg for quicktime

libavformat/aviobuf.c: In function 'url_fdopen':
libavformat/aviobuf.c:541:23: error: passing argument 6 of 'init_put_byte' from incompatible pointer type [-Wincompatible-pointer-types]
  541 |                       url_read, url_write, url_seek) < 0) {
      |                       ^~~~~~~~
      |                       |
      |                       int (*)(URLContext *, unsigned char *, int)
libavformat/aviobuf.c:36:25: note: expected 'int (*)(void *, uint8_t *, int)' {aka 'int (*)(void *, unsigned char *, int)'} but argument is of type 'int (*)(URLContext *, unsigned char *, int)'
   36 |                   int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/aviobuf.c:541:33: error: passing argument 7 of 'init_put_byte' from incompatible pointer type [-Wincompatible-pointer-types]
  541 |                       url_read, url_write, url_seek) < 0) {
      |                                 ^~~~~~~~~
      |                                 |
      |                                 int (*)(URLContext *, unsigned char *, int)
libavformat/aviobuf.c:37:25: note: expected 'int (*)(void *, uint8_t *, int)' {aka 'int (*)(void *, unsigned char *, int)'} but argument is of type 'int (*)(URLContext *, unsigned char *, int)'
   37 |                   int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/aviobuf.c:541:44: error: passing argument 8 of 'init_put_byte' from incompatible pointer type [-Wincompatible-pointer-types]
  541 |                       url_read, url_write, url_seek) < 0) {
      |                                            ^~~~~~~~
      |                                            |
      |                                            offset_t (*)(URLContext *, offset_t,  int) {aka long int (*)(URLContext *, long int,  int)}
libavformat/aviobuf.c:38:30: note: expected 'offset_t (*)(void *, offset_t,  int)' {aka 'long int (*)(void *, long int,  int)'} but argument is of type 'offset_t (*)(URLContext *, offset_t,  int)' {aka 'long int (*)(URLContext *, long int,  int)'}
   38 |                   offset_t (*seek)(void *opaque, offset_t offset, int whence))
      |                   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/aviobuf.c: In function 'url_resetbuf':

Avoided using -Wno-incompatible-pointer-types FabioLolix/PKGBUILD-AUR_fix@63500cf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant