Finally we've managed to replace FFmpeg's traditional bit-mask based channel layout API by their re-designed one. (cf. e.g. https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2833). BS1770GAIN now compiles flawlessly with a decent FFmpeg (without using the HOLZHAMMER).