[FFmpeg-devel] [Patch] Linker error for __ff_aom_uninit_film_grain_params

Sebastian Koerner seb_koerner at hotmail.com
Mon May 12 14:41:06 EEST 2025


Summary of the bug:

When building ffmpeg 7.1.1 from source on macosx x86-64 and selecting only h264 one can observe a linker error around __ff_aop_uninit_film_grain_params


Undefined symbols for architecture arm64:
  "_ff_aom_uninit_film_grain_params", referenced from:
      _ff_h2645_sei_reset in h2645_sei.o
ld: symbol(s) not found for architecture arm64

How to reproduce:

configure ffmpeg 7.1.1 for H.264 only, like

--enable-shared --disable-static   --disable-programs --disable-doc --disable-everything --enable-decoder=h264 --enable-parser=h264 --disable-bzlib --disable-iconv --disable-lzma --disable-xlib --disable-zlib --disable-libxcb --disable-vaapi


Patch

--- ffmpeg-7.1.1/libavcodec/Makefile.org        2025-05-12 11:48:13.000000000 +0200
+++ ffmpeg-7.1.1/libavcodec/Makefile    2025-05-12 11:48:58.000000000 +0200
@@ -1,5 +1,5 @@
 NAME = avcodec
-DESC = FFmpeg codec library
+DESC = FFmpeg codec libriary

 HEADERS = ac3_parser.h                                                  \
           adts_parser.h                                                 \
@@ -108,7 +108,7 @@
                                           h2645data.o h2645_parse.o h2645_vui.o
 OBJS-$(CONFIG_H264PRED)                += h264pred.o
 OBJS-$(CONFIG_H264QPEL)                += h264qpel.o
-OBJS-$(CONFIG_H264_SEI)                += h264_sei.o h2645_sei.o
+OBJS-$(CONFIG_H264_SEI)                += h264_sei.o h2645_sei.o aom_film_grain.o
 OBJS-$(CONFIG_HEVCPARSE)               += h2645data.o h2645_parse.o h2645_vui.o
 OBJS-$(CONFIG_HEVC_SEI)                += h2645_sei.o aom_film_grain.o \
                                           dynamic_hdr_vivid.o


More information about the ffmpeg-devel mailing list