[MPlayer-users] Can't compile

Alexander Strasser eclipse7 at gmx.net
Fri May 7 00:36:47 EEST 2021


Hi!

On 2021-05-06 22:19 +0900, Masaru Nomiya wrote:
[...]
>
> I tried 'make mplayer', but got error;
>
> [...]
> libmpcodecs/ad_spdif.c: In function 'init':
> libmpcodecs/ad_spdif.c:129:33: error: 'AVStream' {aka 'struct AVStream'} has no member named 'codec'
>   129 |             lavf_ctx->streams[0]->codec->codec_id = fmt_id_type[i].id;
>       |                                 ^~
> libmpcodecs/ad_spdif.c:164:33: error: 'AVStream' {aka 'struct AVStream'} has no member named 'codec'
>   164 |     switch (lavf_ctx->streams[0]->codec->codec_id) {
>       |                                 ^~
> libmpcodecs/ad_spdif.c:180:27: warning: passing argument 1 of 'av_opt_find' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>   180 |         opt = av_opt_find(&lavf_ctx->oformat->priv_class,
>       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from libmpcodecs/ad_spdif.c:27:
> ffmpeg/libavutil/opt.h:605:17: note: expected 'void *' but argument is of type  const AVClass * const*' {aka 'const struct AVClass * const*'}
>   605 | const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
>       |                 ^~~~~~~~~~~
> libmpcodecs/ad_spdif.c: In function 'decode_audio':
> libmpcodecs/ad_spdif.c:260:9: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
>   260 |         av_init_packet(&pkt);
>       |         ^~~~~~~~~~~~~~
> In file included from ffmpeg/libavcodec/bsf.h:30,
>                  from ffmpeg/libavcodec/avcodec.h:44,
>                  from ffmpeg/libavformat/avformat.h:312,
>                  from libmpcodecs/ad_spdif.c:25:
> ffmpeg/libavcodec/packet.h:474:6: note: declared here
>   474 | void av_init_packet(AVPacket *pkt);
>       |      ^~~~~~~~~~~~~~
> make: *** [Makefile:728: libmpcodecs/ad_spdif.o] error 1

Sorry if it wasn't clear from my earlier reply, but you will need to
use the latest MPlayer development version from our Subversion repo
or from its Git mirror ( https://git.mplayerhq.hu/mplayer ).


  Alexander


More information about the MPlayer-users mailing list