[MPlayer-users] make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1

Antonio Olivares olivares14031 at yahoo.com
Mon Apr 8 18:22:16 EEST 2024


Dear mplayer-users,

compilation fails on updated fedora 39 

cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/libxml2 -c -o libmpcodecs/ae_lavc.o libmpcodecs/ae_lavc.c
libmpcodecs/ae_lavc.c: In function 'bind_lavc':
libmpcodecs/ae_lavc.c:53:41: error: 'AVCodecContext' has no member named 'channels'
   53 |         mux_a->wf->nChannels = lavc_actx->channels;
      |                                         ^~
libmpcodecs/ae_lavc.c: In function 'mpae_init_lavc':
libmpcodecs/ae_lavc.c:154:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  154 |         lavc_acodec = avcodec_find_encoder_by_name(lavc_param_acodec);
      |                     ^
libmpcodecs/ae_lavc.c:195:18: error: 'AVCodecContext' has no member named 'channels'
  195 |         lavc_actx->channels = encoder->params.channels;
      |                  ^~
libmpcodecs/ae_lavc.c:222:58: error: 'AVCodecContext' has no member named 'channels'
  222 |                 int framesize = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                                                          ^~
libmpcodecs/ae_lavc.c:222:90: error: 'AVCodecContext' has no member named 'channels'
  222 |  = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                                                             ^~

libmpcodecs/ae_lavc.c:241:80: error: 'AVCodecContext' has no member named 'channels'
  241 | c_actx->frame_size = (lavc_actx->block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                                                             ^~

libmpcodecs/ae_lavc.c:241:112: error: 'AVCodecContext' has no member named 'channels'
  241 | >block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                                                             ^~

make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1


Best Regards,


Antonio 



More information about the MPlayer-users mailing list