1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/multimedia/wf-recorder
Jan Beich 28ed4a3f4d multimedia/wf-recorder: unbreak build with ffmpeg 7.0
../src/frame-writer.cpp:458:19: error: no member named 'channel_layouts' in 'AVCodec'; did you mean 'ch_layouts'?
      if (!codec->channel_layouts)
                  ^~~~~~~~~~~~~~~
                  ch_layouts
/usr/local/include/libavcodec/codec.h:230:28: note: 'ch_layouts' declared here
    const AVChannelLayout *ch_layouts;
                           ^
../src/frame-writer.cpp:461:23: error: no member named 'channel_layouts' in 'AVCodec'; did you mean 'ch_layouts'?
          if (!codec->channel_layouts[i])
                      ^~~~~~~~~~~~~~~
                      ch_layouts
/usr/local/include/libavcodec/codec.h:230:28: note: 'ch_layouts' declared here
    const AVChannelLayout *ch_layouts;
                           ^
../src/frame-writer.cpp:461:15: error: invalid argument type 'const AVChannelLayout' to unary expression
          if (!codec->channel_layouts[i])
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/frame-writer.cpp:463:22: error: no member named 'channel_layouts' in 'AVCodec'; did you mean 'ch_layouts'?
          if (codec->channel_layouts[i] == AV_CH_LAYOUT_STEREO)
                     ^~~~~~~~~~~~~~~
                     ch_layouts
/usr/local/include/libavcodec/codec.h:230:28: note: 'ch_layouts' declared here
    const AVChannelLayout *ch_layouts;
                           ^
../src/frame-writer.cpp:463:41: error: invalid operands to binary expression ('const AVChannelLayout' and 'unsigned long long')
          if (codec->channel_layouts[i] == AV_CH_LAYOUT_STEREO)
              ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~
../src/frame-writer.cpp:464:29: error: no member named 'channel_layouts' in 'AVCodec'; did you mean 'ch_layouts'?
              return codec->channel_layouts[i];
                            ^~~~~~~~~~~~~~~
                            ch_layouts
/usr/local/include/libavcodec/codec.h:230:28: note: 'ch_layouts' declared here
    const AVChannelLayout *ch_layouts;
                           ^
../src/frame-writer.cpp:464:22: error: no viable conversion from returned value of type 'const AVChannelLayout' to function return type 'uint64_t' (aka 'unsigned long')
              return codec->channel_layouts[i];
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/frame-writer.cpp:467:21: error: no member named 'channel_layouts' in 'AVCodec'; did you mean 'ch_layouts'?
      return codec->channel_layouts[0];
                    ^~~~~~~~~~~~~~~
                    ch_layouts
/usr/local/include/libavcodec/codec.h:230:28: note: 'ch_layouts' declared here
    const AVChannelLayout *ch_layouts;
                           ^
../src/frame-writer.cpp:467:14: error: no viable conversion from returned value of type 'const AVChannelLayout' to function return type 'uint64_t' (aka 'unsigned long')
      return codec->channel_layouts[0];
             ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/frame-writer.cpp:542:20: error: no member named 'channel_layout' in 'AVCodecContext'
    audioCodecCtx->channel_layout = get_codec_channel_layout(codec);
    ~~~~~~~~~~~~~  ^
../src/frame-writer.cpp:545:20: error: no member named 'channels' in 'AVCodecContext'
    audioCodecCtx->channels = av_get_channel_layout_nb_channels(audioCodecCtx->channel_layout);
    ~~~~~~~~~~~~~  ^
../src/frame-writer.cpp:545:80: error: no member named 'channel_layout' in 'AVCodecContext'
    audioCodecCtx->channels = av_get_channel_layout_nb_channels(audioCodecCtx->channel_layout);
                                                                ~~~~~~~~~~~~~  ^
../src/frame-writer.cpp:568:5: error: use of undeclared identifier 'av_opt_set_channel_layout'; did you mean 'av_opt_set_chlayout'?
    av_opt_set_channel_layout(swrCtx, "in_channel_layout", AV_CH_LAYOUT_STEREO, 0);
    ^~~~~~~~~~~~~~~~~~~~~~~~~
    av_opt_set_chlayout
/usr/local/include/libavutil/opt.h:789:5: note: 'av_opt_set_chlayout' declared here
int av_opt_set_chlayout(void *obj, const char *name, const AVChannelLayout *layout, int search_flags);
    ^
../src/frame-writer.cpp:568:60: error: cannot initialize a parameter of type 'const AVChannelLayout *' with an rvalue of type 'unsigned long long'
    av_opt_set_channel_layout(swrCtx, "in_channel_layout", AV_CH_LAYOUT_STEREO, 0);
                                                           ^~~~~~~~~~~~~~~~~~~
/usr/local/include/libavutil/channel_layout.h:205:40: note: expanded from macro 'AV_CH_LAYOUT_STEREO'
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libavutil/opt.h:789:77: note: passing argument to parameter 'layout' here
int av_opt_set_chlayout(void *obj, const char *name, const AVChannelLayout *layout, int search_flags);
                                                                            ^
../src/frame-writer.cpp:569:76: error: no member named 'channel_layout' in 'AVCodecContext'
    av_opt_set_channel_layout(swrCtx, "out_channel_layout", audioCodecCtx->channel_layout, 0);
                                                            ~~~~~~~~~~~~~  ^
../src/frame-writer.cpp:859:13: error: no member named 'channel_layout' in 'AVFrame'
    inputf->channel_layout = AV_CH_LAYOUT_STEREO;
    ~~~~~~  ^
../src/frame-writer.cpp:868:14: error: no member named 'channel_layout' in 'AVFrame'
    outputf->channel_layout = audioCodecCtx->channel_layout;
    ~~~~~~~  ^
../src/frame-writer.cpp:868:46: error: no member named 'channel_layout' in 'AVCodecContext'
    outputf->channel_layout = audioCodecCtx->channel_layout;
                              ~~~~~~~~~~~~~  ^

Reported by:	antoine (via bug 278705 exp-run)
2024-05-11 18:03:31 +02:00
..
distinfo
Makefile
pkg-descr