summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-08-20 12:28:11 +0530
committerSteve Sakoman <steve@sakoman.com>2025-09-01 08:30:56 -0700
commitc1b0ad70b4898ebc897ed1306e280c9ce924ec02 (patch)
treeed821c30dd19878a8a4c0bec910483e6f6881c01 /meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb
parent35cae2014a57cfc05a19a04a8169d6c2ba9fa9dd (diff)
downloadpoky-c1b0ad70b4898ebc897ed1306e280c9ce924ec02.tar.gz
ffmpeg: upgrade 6.1.2 -> 6.1.3
Fixes: CVE-2023-6604 CVE-2023-6602 CVE-2025-7700 Changelog: https://github.com/FFmpeg/FFmpeg/blob/n6.1.3/Changelog Removed the CVE patches which are already fixed with this upgrade ref: https://github.com/FFmpeg/FFmpeg/commit/c104119c6b5e00496c5ff14071c85f95c98b7ae5 https://github.com/FFmpeg/FFmpeg/commit/7d79d0a43b5533ff584249332bc1db7fedbab1d2 https://github.com/FFmpeg/FFmpeg/commit/a4b6e37ad5f50454974fa22cc8f19d83cdaff0eb https://github.com/FFmpeg/FFmpeg/commit/efedc1d1b6aef2481cf613a11992b1dce6320055 https://github.com/FFmpeg/FFmpeg/commit/dcf34f13f516aa0e214384f3185aff306feba01d https://github.com/FFmpeg/FFmpeg/commit/bed04417b4d38af7a1b477b24ea6e26547e32373 https://github.com/FFmpeg/FFmpeg/commit/b43a12363c1fef0efa7eac15b6b830417656db15 https://github.com/FFmpeg/FFmpeg/commit/e2b20632b8c71a4e174511f8ff6e8342e0c63bd3 https://github.com/FFmpeg/FFmpeg/commit/43f64690ad9df72976bcbd6ea9e41b2542db2464 (From OE-Core rev: 901304a22413030b9744006ae18b587146b71953) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb204
1 files changed, 204 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb
new file mode 100644
index 0000000000..c0112757f0
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb
@@ -0,0 +1,204 @@
1SUMMARY = "A complete, cross-platform solution to record, convert and stream audio and video."
2DESCRIPTION = "FFmpeg is the leading multimedia framework, able to decode, encode, transcode, \
3 mux, demux, stream, filter and play pretty much anything that humans and machines \
4 have created. It supports the most obscure ancient formats up to the cutting edge."
5HOMEPAGE = "https://www.ffmpeg.org/"
6SECTION = "libs"
7
8LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & ISC & MIT & BSD-2-Clause & BSD-3-Clause & IJG"
9LICENSE:${PN} = "GPL-2.0-or-later"
10LICENSE:libavcodec = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
11LICENSE:libavdevice = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
12LICENSE:libavfilter = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
13LICENSE:libavformat = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
14LICENSE:libavutil = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
15LICENSE:libpostproc = "GPL-2.0-or-later"
16LICENSE:libswresample = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
17LICENSE:libswscale = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}"
18LICENSE_FLAGS = "commercial"
19
20LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
21 file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
22 file://COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \
23 file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02"
24
25SRC_URI = " \
26 https://www.ffmpeg.org/releases/${BP}.tar.xz \
27 file://av1_ordering_info.patch \
28 file://vulkan_av1_stable_API.patch \
29 file://vulkan_fix_gcc14.patch \
30 file://CVE-2024-28661.patch \
31 file://CVE-2023-49528.patch \
32 file://CVE-2024-35365.patch \
33 file://CVE-2024-36618.patch \
34 file://CVE-2024-35369.patch \
35 file://CVE-2025-25473.patch \
36 file://CVE-2025-22921.patch \
37"
38
39SRC_URI[sha256sum] = "bc5f1e4a4d283a6492354684ee1124129c52293bcfc6a9169193539fbece3487"
40
41# https://nvd.nist.gov/vuln/detail/CVE-2023-39018
42# https://github.com/bramp/ffmpeg-cli-wrapper/issues/291
43# https://security-tracker.debian.org/tracker/CVE-2023-39018
44# https://bugzilla.suse.com/show_bug.cgi?id=CVE-2023-39018
45CVE_STATUS[CVE-2023-39018] = "cpe-incorrect: This issue belongs to ffmpeg-cli-wrapper \
46(Java wrapper around the FFmpeg CLI) and not ffmepg itself."
47
48# Introduced: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/19f7dae81ab2c19643b97da7556383ee3f721e78
49# Fixed: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/43be8d07281caca2e88bfd8ee2333633e1fb1a13
50CVE_STATUS[CVE-2025-1373] = "fixed-version: Vulnerable code not present in any release"
51
52# Build fails when thumb is enabled: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7717
53ARM_INSTRUCTION_SET:armv4 = "arm"
54ARM_INSTRUCTION_SET:armv5 = "arm"
55ARM_INSTRUCTION_SET:armv6 = "arm"
56
57# Should be API compatible with libav (which was a fork of ffmpeg)
58# libpostproc was previously packaged from a separate recipe
59PROVIDES = "libav libpostproc"
60
61DEPENDS = "nasm-native"
62
63inherit autotools pkgconfig
64
65PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \
66 alsa bzlib lzma theora zlib \
67 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}"
68
69# libraries to build in addition to avutil
70PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice"
71PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter"
72PACKAGECONFIG[avcodec] = "--enable-avcodec,--disable-avcodec"
73PACKAGECONFIG[avformat] = "--enable-avformat,--disable-avformat"
74PACKAGECONFIG[swresample] = "--enable-swresample,--disable-swresample"
75PACKAGECONFIG[swscale] = "--enable-swscale,--disable-swscale"
76PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc"
77
78# features to support
79PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
80PACKAGECONFIG[altivec] = "--enable-altivec,--disable-altivec,"
81PACKAGECONFIG[bzlib] = "--enable-bzlib,--disable-bzlib,bzip2"
82PACKAGECONFIG[fdk-aac] = "--enable-libfdk-aac --enable-nonfree,--disable-libfdk-aac,fdk-aac"
83PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
84PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
85PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
86PACKAGECONFIG[libopus] = "--enable-libopus,--disable-libopus,libopus"
87PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
88PACKAGECONFIG[lzma] = "--enable-lzma,--disable-lzma,xz"
89PACKAGECONFIG[mfx] = "--enable-libmfx,--disable-libmfx,intel-mediasdk"
90PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame"
91PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
92PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable-sdl2,virtual/libsdl2"
93PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex"
94PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt"
95PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora libogg"
96PACKAGECONFIG[v4l2] = "--enable-libv4l2,--disable-libv4l2,v4l-utils"
97PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva"
98PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
99PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx"
100PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264"
101PACKAGECONFIG[x265] = "--enable-libx265,--disable-libx265,x265"
102PACKAGECONFIG[xcb] = "--enable-libxcb,--disable-libxcb,libxcb"
103PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv"
104PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
105
106# Check codecs that require --enable-nonfree
107USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}"
108
109def cpu(d):
110 for arg in (d.getVar('TUNE_CCARGS') or '').split():
111 if arg.startswith('-mcpu='):
112 return arg[6:]
113 return 'generic'
114
115EXTRA_OECONF = " \
116 --disable-stripping \
117 --enable-pic \
118 --enable-shared \
119 --enable-pthreads \
120 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
121 \
122 --cross-prefix=${TARGET_PREFIX} \
123 \
124 --ld='${CCLD}' \
125 --cc='${CC}' \
126 --cxx='${CXX}' \
127 --arch=${TARGET_ARCH} \
128 --target-os='linux' \
129 --enable-cross-compile \
130 --extra-cflags='${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}' \
131 --extra-ldflags='${LDFLAGS}' \
132 --sysroot='${STAGING_DIR_TARGET}' \
133 ${EXTRA_FFCONF} \
134 --libdir=${libdir} \
135 --shlibdir=${libdir} \
136 --datadir=${datadir}/ffmpeg \
137 ${@bb.utils.contains('AVAILTUNES', 'mips32r2', '', '--disable-mipsdsp --disable-mipsdspr2', d)} \
138 --cpu=${@cpu(d)} \
139 --pkg-config=pkg-config \
140"
141
142EXTRA_OECONF:append:linux-gnux32 = " --disable-asm"
143
144EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', '--disable-mips64r2 --disable-mips32r2', '', d)}"
145EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r2', '--disable-mips64r6 --disable-mips32r6', '', d)}"
146EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r2', '--disable-mips64r6 --disable-mips32r6', '', d)}"
147EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r6', '--disable-mips64r2 --disable-mips32r2', '', d)}"
148EXTRA_OECONF:append:mips = " --extra-libs=-latomic --disable-mips32r5 --disable-mipsdsp --disable-mipsdspr2 \
149 --disable-loongson2 --disable-loongson3 --disable-mmi --disable-msa"
150EXTRA_OECONF:append:riscv32 = " --extra-libs=-latomic --disable-rvv --disable-asm"
151EXTRA_OECONF:append:armv5 = " --extra-libs=-latomic"
152EXTRA_OECONF:append:powerpc = " --extra-libs=-latomic"
153EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}"
154EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}"
155
156# gold crashes on x86, another solution is to --disable-asm but thats more hacky
157# ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684
158
159LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
160LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd ', '', d)}"
161
162EXTRA_OEMAKE = "V=1"
163
164do_configure() {
165 export TMPDIR="${B}/tmp"
166 mkdir -p ${B}/tmp
167 ${S}/configure ${EXTRA_OECONF}
168 sed -i -e "s,^X86ASMFLAGS=.*,& --debug-prefix-map=${S}=${TARGET_DBGSRC_DIR} --debug-prefix-map=${B}=${TARGET_DBGSRC_DIR},g" ${B}/ffbuild/config.mak
169}
170
171# patch out build host paths for reproducibility
172do_compile:prepend:class-target() {
173 sed -i -e "s,${WORKDIR},,g" ${B}/config.h
174}
175
176PACKAGES =+ "libavcodec \
177 libavdevice \
178 libavfilter \
179 libavformat \
180 libavutil \
181 libpostproc \
182 libswresample \
183 libswscale"
184
185FILES:libavcodec = "${libdir}/libavcodec${SOLIBS}"
186FILES:libavdevice = "${libdir}/libavdevice${SOLIBS}"
187FILES:libavfilter = "${libdir}/libavfilter${SOLIBS}"
188FILES:libavformat = "${libdir}/libavformat${SOLIBS}"
189FILES:libavutil = "${libdir}/libavutil${SOLIBS}"
190FILES:libpostproc = "${libdir}/libpostproc${SOLIBS}"
191FILES:libswresample = "${libdir}/libswresample${SOLIBS}"
192FILES:libswscale = "${libdir}/libswscale${SOLIBS}"
193
194# ffmpeg disables PIC on some platforms (e.g. x86-32)
195INSANE_SKIP:${MLPREFIX}libavcodec = "textrel"
196INSANE_SKIP:${MLPREFIX}libavdevice = "textrel"
197INSANE_SKIP:${MLPREFIX}libavfilter = "textrel"
198INSANE_SKIP:${MLPREFIX}libavformat = "textrel"
199INSANE_SKIP:${MLPREFIX}libavutil = "textrel"
200INSANE_SKIP:${MLPREFIX}libswscale = "textrel"
201INSANE_SKIP:${MLPREFIX}libswresample = "textrel"
202INSANE_SKIP:${MLPREFIX}libpostproc = "textrel"
203
204CVE_PRODUCT = "ffmpeg libswresample libavcodec"