Building on Arch, ffmpeg error

The following command returned a non-zero value: g++ -std=gnu++11 -ftemplate-depth-70 -fPIC -c -o built/tmp/p3ffmpeg_composite1.o -Ibuilt/tmp -Ibuilt/include -DHAVE_SWSCALE= -DHAVE_SWRESAMPLE= -Ipanda/src/ffmpeg -fvisibility=hidden -pthread -fno-exceptions -msse2 -fno-strict-aliasing -ffast-math -fno-stack-protector -fno-finite-math-only -fno-unsafe-math-optimizations -O2 -Wall -Wno-unused-function -Wno-reorder -DBUILDING_FFMPEG panda/src/ffmpeg/p3ffmpeg_composite1.cxx
> Build terminated.

Help?

Could you share the actual compiler error, rather than just the command that failed?

In file included from panda/src/ffmpeg/p3ffmpeg_composite1.cxx:5:
panda/src/ffmpeg/ffmpegAudioCursor.cxx: In constructor ‘FfmpegAudioCursor::FfmpegAudioCursor(FfmpegAudio*)’:
panda/src/ffmpeg/ffmpegAudioCursor.cxx:102:31: error: ‘AVCodecParameters’ {aka ‘struct AVCodecParameters’} has no member named ‘channels’
  102 |   _audio_channels = codecpar->channels;
      |                               ^~~~~~~~
panda/src/ffmpeg/ffmpegAudioCursor.cxx:143:68: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
  143 |     av_opt_set_int(_resample_ctx, "in_channel_layout", _audio_ctx->channel_layout, 0);
      |                                                                    ^~~~~~~~~~~~~~
      |                                                                    ch_layout
panda/src/ffmpeg/ffmpegAudioCursor.cxx:144:69: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
  144 |     av_opt_set_int(_resample_ctx, "out_channel_layout", _audio_ctx->channel_layout, 0);
      |                                                                     ^~~~~~~~~~~~~~
      |                                                                     ch_layout

It seems this fixes it, for version 6.0+, I guess… Im on 7.

      _audio_channels = codecpar->ch_layout.nb_channels;
      swr_alloc_set_opts2(
          &_resample_ctx,
          &_audio_ctx->ch_layout,
          AV_SAMPLE_FMT_S16,
          _audio_ctx->sample_rate,
          &_audio_ctx->ch_layout,
          _audio_ctx->sample_fmt,
          _audio_ctx->sample_rate,
          0, nullptr);

Looks like we already have a fix for this in Git. We will release 1.10.15 soon with this fix.