diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2026-02-02 17:08:03 +1300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2026-02-16 09:52:35 +0000 |
| commit | b8600b66e4ad5b3f8a09b9f6f54fb566258d9e87 (patch) | |
| tree | ec6b2315e6f5cca9b16f8100353674306c3ebae8 /meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb | |
| parent | 463172affb85d906cf89e1da227678759982f369 (diff) | |
| download | poky-b8600b66e4ad5b3f8a09b9f6f54fb566258d9e87.tar.gz | |
ffmpeg: upgrade 6.1.3 -> 6.1.4
Dropped patches that are part of the upstream version.
Changelog:
https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/34277e12e80031c7f89494ba543684bc1dd0be8f:/Changelog
(From OE-Core rev: f9f054faca45a08507b510c8982f170edd6bf83a)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb')
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb | 209 |
1 files changed, 0 insertions, 209 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb deleted file mode 100644 index 38c6d1f2b7..0000000000 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.3.bb +++ /dev/null | |||
| @@ -1,209 +0,0 @@ | |||
| 1 | SUMMARY = "A complete, cross-platform solution to record, convert and stream audio and video." | ||
| 2 | DESCRIPTION = "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." | ||
| 5 | HOMEPAGE = "https://www.ffmpeg.org/" | ||
| 6 | SECTION = "libs" | ||
| 7 | |||
| 8 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & ISC & MIT & BSD-2-Clause & BSD-3-Clause & IJG" | ||
| 9 | LICENSE:${PN} = "GPL-2.0-or-later" | ||
| 10 | LICENSE:libavcodec = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 11 | LICENSE:libavdevice = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 12 | LICENSE:libavfilter = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 13 | LICENSE:libavformat = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 14 | LICENSE:libavutil = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 15 | LICENSE:libpostproc = "GPL-2.0-or-later" | ||
| 16 | LICENSE:libswresample = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 17 | LICENSE:libswscale = "${@bb.utils.contains('PACKAGECONFIG', 'gpl', 'GPL-2.0-or-later', 'LGPL-2.1-or-later', d)}" | ||
| 18 | LICENSE_FLAGS = "commercial" | ||
| 19 | |||
| 20 | LIC_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 | |||
| 25 | SRC_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 | file://CVE-2025-1594.patch \ | ||
| 38 | " | ||
| 39 | |||
| 40 | SRC_URI[sha256sum] = "bc5f1e4a4d283a6492354684ee1124129c52293bcfc6a9169193539fbece3487" | ||
| 41 | |||
| 42 | # https://nvd.nist.gov/vuln/detail/CVE-2023-39018 | ||
| 43 | # https://github.com/bramp/ffmpeg-cli-wrapper/issues/291 | ||
| 44 | # https://security-tracker.debian.org/tracker/CVE-2023-39018 | ||
| 45 | # https://bugzilla.suse.com/show_bug.cgi?id=CVE-2023-39018 | ||
| 46 | CVE_STATUS[CVE-2023-39018] = "cpe-incorrect: This issue belongs to ffmpeg-cli-wrapper \ | ||
| 47 | (Java wrapper around the FFmpeg CLI) and not ffmepg itself." | ||
| 48 | |||
| 49 | # Introduced: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/19f7dae81ab2c19643b97da7556383ee3f721e78 | ||
| 50 | # Fixed: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/43be8d07281caca2e88bfd8ee2333633e1fb1a13 | ||
| 51 | CVE_STATUS[CVE-2025-1373] = "fixed-version: Vulnerable code not present in any release" | ||
| 52 | |||
| 53 | CVE_STATUS_GROUPS += "CVE_STATUS_FIXED_61x" | ||
| 54 | CVE_STATUS_FIXED_61x = "CVE-2023-49502 CVE-2023-50007 CVE-2023-50008 CVE-2023-50009 CVE-2023-50010 CVE-2024-31578 CVE-2024-31582 CVE-2024-31585" | ||
| 55 | CVE_STATUS_FIXED_61x[status] = "cpe-incorrect:these CVEs are fixed in 6.1.x" | ||
| 56 | |||
| 57 | # Build fails when thumb is enabled: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7717 | ||
| 58 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
| 59 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 60 | ARM_INSTRUCTION_SET:armv6 = "arm" | ||
| 61 | |||
| 62 | # Should be API compatible with libav (which was a fork of ffmpeg) | ||
| 63 | # libpostproc was previously packaged from a separate recipe | ||
| 64 | PROVIDES = "libav libpostproc" | ||
| 65 | |||
| 66 | DEPENDS = "nasm-native" | ||
| 67 | |||
| 68 | inherit autotools pkgconfig | ||
| 69 | |||
| 70 | PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \ | ||
| 71 | alsa bzlib lzma theora zlib \ | ||
| 72 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}" | ||
| 73 | |||
| 74 | # libraries to build in addition to avutil | ||
| 75 | PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice" | ||
| 76 | PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter" | ||
| 77 | PACKAGECONFIG[avcodec] = "--enable-avcodec,--disable-avcodec" | ||
| 78 | PACKAGECONFIG[avformat] = "--enable-avformat,--disable-avformat" | ||
| 79 | PACKAGECONFIG[swresample] = "--enable-swresample,--disable-swresample" | ||
| 80 | PACKAGECONFIG[swscale] = "--enable-swscale,--disable-swscale" | ||
| 81 | PACKAGECONFIG[postproc] = "--enable-postproc,--disable-postproc" | ||
| 82 | |||
| 83 | # features to support | ||
| 84 | PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib" | ||
| 85 | PACKAGECONFIG[altivec] = "--enable-altivec,--disable-altivec," | ||
| 86 | PACKAGECONFIG[bzlib] = "--enable-bzlib,--disable-bzlib,bzip2" | ||
| 87 | PACKAGECONFIG[fdk-aac] = "--enable-libfdk-aac --enable-nonfree,--disable-libfdk-aac,fdk-aac" | ||
| 88 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl" | ||
| 89 | PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm" | ||
| 90 | PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack" | ||
| 91 | PACKAGECONFIG[libopus] = "--enable-libopus,--disable-libopus,libopus" | ||
| 92 | PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis" | ||
| 93 | PACKAGECONFIG[lzma] = "--enable-lzma,--disable-lzma,xz" | ||
| 94 | PACKAGECONFIG[mfx] = "--enable-libmfx,--disable-libmfx,intel-mediasdk" | ||
| 95 | PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame" | ||
| 96 | PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" | ||
| 97 | PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable-sdl2,virtual/libsdl2" | ||
| 98 | PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex" | ||
| 99 | PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt" | ||
| 100 | PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora libogg" | ||
| 101 | PACKAGECONFIG[v4l2] = "--enable-libv4l2,--disable-libv4l2,v4l-utils" | ||
| 102 | PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva" | ||
| 103 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" | ||
| 104 | PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx" | ||
| 105 | PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264" | ||
| 106 | PACKAGECONFIG[x265] = "--enable-libx265,--disable-libx265,x265" | ||
| 107 | PACKAGECONFIG[xcb] = "--enable-libxcb,--disable-libxcb,libxcb" | ||
| 108 | PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv" | ||
| 109 | PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" | ||
| 110 | |||
| 111 | # Check codecs that require --enable-nonfree | ||
| 112 | USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}" | ||
| 113 | |||
| 114 | def cpu(d): | ||
| 115 | for arg in (d.getVar('TUNE_CCARGS') or '').split(): | ||
| 116 | if arg.startswith('-mcpu='): | ||
| 117 | return arg[6:] | ||
| 118 | return 'generic' | ||
| 119 | |||
| 120 | EXTRA_OECONF = " \ | ||
| 121 | --disable-stripping \ | ||
| 122 | --enable-pic \ | ||
| 123 | --enable-shared \ | ||
| 124 | --enable-pthreads \ | ||
| 125 | ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \ | ||
| 126 | \ | ||
| 127 | --cross-prefix=${TARGET_PREFIX} \ | ||
| 128 | \ | ||
| 129 | --ld='${CCLD}' \ | ||
| 130 | --cc='${CC}' \ | ||
| 131 | --cxx='${CXX}' \ | ||
| 132 | --arch=${TARGET_ARCH} \ | ||
| 133 | --target-os='linux' \ | ||
| 134 | --enable-cross-compile \ | ||
| 135 | --extra-cflags='${CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}' \ | ||
| 136 | --extra-ldflags='${LDFLAGS}' \ | ||
| 137 | --sysroot='${STAGING_DIR_TARGET}' \ | ||
| 138 | ${EXTRA_FFCONF} \ | ||
| 139 | --libdir=${libdir} \ | ||
| 140 | --shlibdir=${libdir} \ | ||
| 141 | --datadir=${datadir}/ffmpeg \ | ||
| 142 | ${@bb.utils.contains('AVAILTUNES', 'mips32r2', '', '--disable-mipsdsp --disable-mipsdspr2', d)} \ | ||
| 143 | --cpu=${@cpu(d)} \ | ||
| 144 | --pkg-config=pkg-config \ | ||
| 145 | " | ||
| 146 | |||
| 147 | EXTRA_OECONF:append:linux-gnux32 = " --disable-asm" | ||
| 148 | |||
| 149 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', '--disable-mips64r2 --disable-mips32r2', '', d)}" | ||
| 150 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r2', '--disable-mips64r6 --disable-mips32r6', '', d)}" | ||
| 151 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r2', '--disable-mips64r6 --disable-mips32r6', '', d)}" | ||
| 152 | EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'mips32r6', '--disable-mips64r2 --disable-mips32r2', '', d)}" | ||
| 153 | EXTRA_OECONF:append:mips = " --extra-libs=-latomic --disable-mips32r5 --disable-mipsdsp --disable-mipsdspr2 \ | ||
| 154 | --disable-loongson2 --disable-loongson3 --disable-mmi --disable-msa" | ||
| 155 | EXTRA_OECONF:append:riscv32 = " --extra-libs=-latomic --disable-rvv --disable-asm" | ||
| 156 | EXTRA_OECONF:append:armv5 = " --extra-libs=-latomic" | ||
| 157 | EXTRA_OECONF:append:powerpc = " --extra-libs=-latomic" | ||
| 158 | EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" | ||
| 159 | EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" | ||
| 160 | |||
| 161 | # gold crashes on x86, another solution is to --disable-asm but thats more hacky | ||
| 162 | # ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3684 | ||
| 163 | |||
| 164 | LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
| 165 | LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd ', '', d)}" | ||
| 166 | |||
| 167 | EXTRA_OEMAKE = "V=1" | ||
| 168 | |||
| 169 | do_configure() { | ||
| 170 | export TMPDIR="${B}/tmp" | ||
| 171 | mkdir -p ${B}/tmp | ||
| 172 | ${S}/configure ${EXTRA_OECONF} | ||
| 173 | sed -i -e "s,^X86ASMFLAGS=.*,& --debug-prefix-map=${S}=${TARGET_DBGSRC_DIR} --debug-prefix-map=${B}=${TARGET_DBGSRC_DIR},g" ${B}/ffbuild/config.mak | ||
| 174 | } | ||
| 175 | |||
| 176 | # patch out build host paths for reproducibility | ||
| 177 | do_compile:prepend:class-target() { | ||
| 178 | sed -i -e "s,${WORKDIR},,g" ${B}/config.h | ||
| 179 | } | ||
| 180 | |||
| 181 | PACKAGES =+ "libavcodec \ | ||
| 182 | libavdevice \ | ||
| 183 | libavfilter \ | ||
| 184 | libavformat \ | ||
| 185 | libavutil \ | ||
| 186 | libpostproc \ | ||
| 187 | libswresample \ | ||
| 188 | libswscale" | ||
| 189 | |||
| 190 | FILES:libavcodec = "${libdir}/libavcodec${SOLIBS}" | ||
| 191 | FILES:libavdevice = "${libdir}/libavdevice${SOLIBS}" | ||
| 192 | FILES:libavfilter = "${libdir}/libavfilter${SOLIBS}" | ||
| 193 | FILES:libavformat = "${libdir}/libavformat${SOLIBS}" | ||
| 194 | FILES:libavutil = "${libdir}/libavutil${SOLIBS}" | ||
| 195 | FILES:libpostproc = "${libdir}/libpostproc${SOLIBS}" | ||
| 196 | FILES:libswresample = "${libdir}/libswresample${SOLIBS}" | ||
| 197 | FILES:libswscale = "${libdir}/libswscale${SOLIBS}" | ||
| 198 | |||
| 199 | # ffmpeg disables PIC on some platforms (e.g. x86-32) | ||
| 200 | INSANE_SKIP:${MLPREFIX}libavcodec = "textrel" | ||
| 201 | INSANE_SKIP:${MLPREFIX}libavdevice = "textrel" | ||
| 202 | INSANE_SKIP:${MLPREFIX}libavfilter = "textrel" | ||
| 203 | INSANE_SKIP:${MLPREFIX}libavformat = "textrel" | ||
| 204 | INSANE_SKIP:${MLPREFIX}libavutil = "textrel" | ||
| 205 | INSANE_SKIP:${MLPREFIX}libswscale = "textrel" | ||
| 206 | INSANE_SKIP:${MLPREFIX}libswresample = "textrel" | ||
| 207 | INSANE_SKIP:${MLPREFIX}libpostproc = "textrel" | ||
| 208 | |||
| 209 | CVE_PRODUCT = "ffmpeg libswresample libavcodec" | ||
