Debian unstable amd64
gcc 16.1.0
ffmpeg 9.0
mediaenc_ffmpeg.cpp: In function 'bool hasSampleFmt(AVCodec*, AVSampleFormat)':
mediaenc_ffmpeg.cpp:258:37: error: 'AVCodec' {aka 'struct AVCodec'} has no member named 'sample_fmts'
258 | if (codec != NULL && codec->sample_fmts != NULL) {
| ^~~~~~~~~~~
mediaenc_ffmpeg.cpp:260:31: error: 'AVCodec' {aka 'struct AVCodec'} has no member named 'sample_fmts'
260 | while (codec->sample_fmts[fIdx] >= 0) {
| ^~~~~~~~~~~
mediaenc_ffmpeg.cpp:261:36: error: 'AVCodec' {aka 'struct AVCodec'} has no member named 'sample_fmts'
261 | if (codec->sample_fmts[fIdx] == sample_fmt)
| ^~~~~~~~~~~
make[3]: *** [Makefile:702: mediaenc_ffmpeg.o] Error 1
Arch linux provides a patch
https://gitlab.archlinux.org/archlinux/packaging/packages/dvdstyler/-/blob/main/ffmpeg-9.patch?ref_type=heads