When trying to build the latest Git build of FFmpeg with libaom enabled, I'm getting the following error:
CC libavcodec/libaomdec.o In file included from ./libavutil/common.h:105:0 , from libavcodec/libaomdec.c:29 : ./config.h:38:0: warning: "ARCH_X86" redefined #define ARCH_X86 1 In file included from /usr/local/include/aom/aom_image.h:38:0 , from /usr/local/include/aom/aom_codec.h:47 , from /usr/local/include/aom/aom_decoder.h:33 , from libavcodec/libaomdec.c:26 : /usr/local/include/aom/aom_config.h:15:0: note: this is the location of the previous definition #define ARCH_X86 0 In file included from ./libavutil/common.h:105:0 , from libavcodec/libaomdec.c:29 : ./config.h:563:0: warning: "CONFIG_PIC" redefined #define CONFIG_PIC 1 In file included from /usr/local/include/aom/aom_image.h:38:0 , from /usr/local/include/aom/aom_codec.h:47 , from /usr/local/include/aom/aom_decoder.h:33 , from libavcodec/libaomdec.c:26 : /usr/local/include/aom/aom_config.h:109:0: note: this is the location of the previous definition #define CONFIG_PIC 0 libavcodec/libaomdec.c: In function ‘ set_pix_fmt ’: libavcodec/libaomdec.c:92:35: error: ‘ struct aom_image ’ has no member named ‘ cp ’; did you mean ‘ cs ’? avctx->color_primaries = img-> cp ; ^~ cs libavcodec/libaomdec.c:93:29: error: ‘ struct aom_image ’ has no member named ‘ mc ’ avctx->colorspace = img -> mc; ^~ libavcodec/libaomdec.c:94:29: error: ‘ struct aom_image ’ has no member named ‘ tc ’ avctx->color_trc = img -> tc; ^~ libavcodec/libaomdec.c: In function ‘ aom_decode ’: libavcodec/libaomdec.c:176:9: error: too few arguments to function ‘ aom_codec_decode ’ if ( aom_codec_decode (&ctx->decoder, avpkt->data, avpkt->size, NULL) != ^~~~~~~~~~~~~~~~ In file included from libavcodec/libaomdec.c:26:0 : /usr/local/include/aom/aom_decoder.h:218:17: note: declared here aom_codec_err_t aom_codec_decode (aom_codec_ctx_t *ctx, const uint8_t *data, ^~~~~~~~~~~~~~~~ make: *** [ffbuild/common.mak:60: libavcodec/libaomdec.o] Error 1 My configure/make command looks like this: sudo -H bash -c 'make clean && export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ && ./configure --enable-gpl --enable-version3 --enable-libopus --enable-libcodec2 --enable-libmp3lame --enable-libx265 --enable-libaom --enable-libfreetype --enable-libvpx --enable-libv4l2 --enable-libx264 --enable-libass --enable-libpulse --enable-libvorbis --enable-libwebp --enable-libtheora && nice make && nice make install && notify-send "FFmpeg build done"' I've built the latest Git build of aom with cmake and default settings. I don't know what's wrong. But from the looks of it, this might be a bug in libavcodec, since the corresponding function in libaom that's throwing the error takes 5 arguments instead of 4. I'd appreciate if somebody could help me with this. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".