[MPlayer-users] Failed to compile

Masaru Nomiya nomiya at galaxy.dti.ne.jp
Sun Nov 1 03:53:02 EET 2020


Hello,

With the very latest head of mplayer source, the compilation failes;

libmpcodecs/ad_ffmpeg.c:349:2: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations]
  y=avcodec_decode_audio4(sh_audio->context, frame, &got_frame, &pkt);
  ^
In file included from libmpcodecs/ad_ffmpeg.c:47:
ffmpeg/libavcodec/avcodec.h:3024:5: note: declared here
 int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
     ^~~~~~~~~~~~~~~~~~~~~
libmpcodecs/ad_spdif.c: In function 'init':
libmpcodecs/ad_spdif.c:129:13: warning: 'codec' is deprecated [-Wdeprecated-declarations]
             lavf_ctx->streams[0]->codec->codec_id = fmt_id_type[i].id;
             ^~~~~~~~
In file included from libmpcodecs/ad_spdif.c:25:
ffmpeg/libavformat/avformat.h:884:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
libmpcodecs/ad_spdif.c:164:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     switch (lavf_ctx->streams[0]->codec->codec_id) {
     ^~~~~~
In file included from libmpcodecs/ad_spdif.c:25:
ffmpeg/libavformat/avformat.h:884:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
libmpcodecs/ad_spdif.c: In function 'uninit':
libmpcodecs/ad_spdif.c:302:13: warning: 'codec' is deprecated [-Wdeprecated-declarations]
             av_freep(&lavf_ctx->streams[0]->codec);
             ^~~~~~~~
In file included from libmpcodecs/ad_spdif.c:25:
ffmpeg/libavformat/avformat.h:884:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
libmpcodecs/ad_spdif.c:303:43: error: 'AVStream' {aka 'struct AVStream'} has no member named 'info'
             av_freep(&lavf_ctx->streams[0]->info);
                                           ^~
make: *** [Makefile:725: libmpcodecs/ad_spdif.o] Error 1
make: *** Waiting for unfinished jobs....
libmpcodecs/vf_lavc.c: In function 'put_image':
libmpcodecs/vf_lavc.c:102:5: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations]
     ret = avcodec_encode_video2(&lavc_venc_context, &pkt, pic, &got_pkt);
     ^~~
In file included from libmpcodecs/vf_lavc.c:32:
ffmpeg/libavcodec/avcodec.h:3693:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c: In function 'vdpau_render_wrapper':
libmpcodecs/vd_ffmpeg.c:225:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     data.surface = (VdpVideoSurface)mpi->priv;
                    ^
libmpcodecs/vd_ffmpeg.c: In function 'init':
libmpcodecs/vd_ffmpeg.c:490:5: warning: 'refcounted_frames' is deprecated [-Wdeprecated-declarations]
     avctx->refcounted_frames = 1;
     ^~~~~
In file included from ffmpeg/libavcodec/vdpau.h:57,
                 from libmpcodecs/vd_ffmpeg.c:41:
ffmpeg/libavcodec/avcodec.h:1357:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c: In function 'get_buffer':
libmpcodecs/vd_ffmpeg.c:743:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         VdpVideoSurface surface = (VdpVideoSurface)mpi->priv;
                                   ^
libmpcodecs/vd_ffmpeg.c:745:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         mpi->planes[3] = (void *)surface;
                          ^
libmpcodecs/vd_ffmpeg.c:750:16: warning: 'xvmc_pix_fmt' is deprecated [-Wdeprecated-declarations]
         struct xvmc_pix_fmt *render = mpi->priv; //same as data[2]
                ^~~~~~~~~~~~
In file included from libmpcodecs/vd_ffmpeg.c:75:
ffmpeg/libavcodec/xvmc.h:46:29: note: declared here
 struct attribute_deprecated xvmc_pix_fmt {
                             ^~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c: In function 'decode':
libmpcodecs/vd_ffmpeg.c:908:5: warning: 'av_packet_split_side_data' is deprecated [-Wdeprecated-declarations]
     av_packet_split_side_data(&pkt);
     ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ffmpeg/libavcodec/bsf.h:30,
                 from ffmpeg/libavcodec/avcodec.h:44,
                 from ffmpeg/libavcodec/vdpau.h:57,
                 from libmpcodecs/vd_ffmpeg.c:41:
ffmpeg/libavcodec/packet.h:608:5: note: declared here
 int av_packet_split_side_data(AVPacket *pkt);
     ^~~~~~~~~~~~~~~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c:931:5: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations]
     ret = avcodec_decode_video2(avctx, pic, &got_picture, &pkt);
     ^~~
In file included from ffmpeg/libavcodec/vdpau.h:57,
                 from libmpcodecs/vd_ffmpeg.c:41:
ffmpeg/libavcodec/avcodec.h:3073:5: note: declared here
 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
     ^~~~~~~~~~~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c:977:13: warning: 'av_frame_get_qp_table' is deprecated  -Wdeprecated-declarations]
             int8_t *q = av_frame_get_qp_table(pic, &qstride, &dummy);
             ^~~~~~
In file included from ffmpeg/libavcodec/avcodec.h:38,
                 from ffmpeg/libavcodec/vdpau.h:57,
                 from libmpcodecs/vd_ffmpeg.c:41:
ffmpeg/libavutil/frame.h:733:9: note: declared here
 int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type);
         ^~~~~~~~~~~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c:1022:13: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      return &mpi_no_picture; // H.264 first field only
             ^~~~~~~~~~~~~~~
libmpcodecs/vd_ffmpeg.c:1074:5: warning: 'av_frame_get_qp_table' is deprecated  -Wdeprecated-declarations]
     mpi->qscale = av_frame_get_qp_table(pic, &mpi->qstride, &mpi->qscale_type);
     ^~~
In file included from ffmpeg/libavcodec/avcodec.h:38,
                 from ffmpeg/libavcodec/vdpau.h:57,
                 from libmpcodecs/vd_ffmpeg.c:41:
ffmpeg/libavutil/frame.h:733:9: note: declared here
 int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type);

Regards,

---
┏━━┓彡 Masaru Nomiya             mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛         Think.
					-- The IBM slogan --


More information about the MPlayer-users mailing list