diff options
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/0001-configure-improve-check-for-POSIX-ioctl.patch | 48 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch | 52 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_7.1.bb (renamed from meta/recipes-multimedia/ffmpeg/ffmpeg_7.0.2.bb) | 9 |
3 files changed, 3 insertions, 106 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-configure-improve-check-for-POSIX-ioctl.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-configure-improve-check-for-POSIX-ioctl.patch deleted file mode 100644 index b7c8cb2135..0000000000 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-configure-improve-check-for-POSIX-ioctl.patch +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | From 82b5617b8197246cf5b2af98a28f2aa37b8c8aa1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ramiro Polla <ramiro.polla@gmail.com> | ||
| 3 | Date: Thu, 29 Aug 2024 15:40:00 +0200 | ||
| 4 | Subject: [PATCH] configure: improve check for POSIX ioctl | ||
| 5 | |||
| 6 | Instead of relying on system #ifdefs which may or may not be correct, | ||
| 7 | detect the POSIX ioctl signature at configure time. | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/00b64fca55a3a009c9d0e391c85f4fd3291e5d12] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | configure | 2 ++ | ||
| 13 | libavdevice/v4l2.c | 2 +- | ||
| 14 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/configure b/configure | ||
| 17 | index 8642513..d70b0bb 100755 | ||
| 18 | --- a/configure | ||
| 19 | +++ b/configure | ||
| 20 | @@ -2517,6 +2517,7 @@ HAVE_LIST=" | ||
| 21 | opencl_videotoolbox | ||
| 22 | perl | ||
| 23 | pod2man | ||
| 24 | + posix_ioctl | ||
| 25 | texi2html | ||
| 26 | xmllint | ||
| 27 | zlib_gzip | ||
| 28 | @@ -7131,6 +7132,7 @@ perl -v > /dev/null 2>&1 && enable perl || disable perl | ||
| 29 | pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man | ||
| 30 | rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contimeout | ||
| 31 | xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint | ||
| 32 | +test_code cc sys/ioctl.h "int ioctl(int, int, ...)" && enable posix_ioctl | ||
| 33 | |||
| 34 | # check V4L2 codecs available in the API | ||
| 35 | if enabled v4l2_m2m; then | ||
| 36 | diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c | ||
| 37 | index 50ac47e..ee01711 100644 | ||
| 38 | --- a/libavdevice/v4l2.c | ||
| 39 | +++ b/libavdevice/v4l2.c | ||
| 40 | @@ -107,7 +107,7 @@ struct video_data { | ||
| 41 | int (*open_f)(const char *file, int oflag, ...); | ||
| 42 | int (*close_f)(int fd); | ||
| 43 | int (*dup_f)(int fd); | ||
| 44 | -#if defined(__sun) || defined(__BIONIC__) || defined(__musl__) /* POSIX-like */ | ||
| 45 | +#if HAVE_POSIX_IOCTL | ||
| 46 | int (*ioctl_f)(int fd, int request, ...); | ||
| 47 | #else | ||
| 48 | int (*ioctl_f)(int fd, unsigned long int request, ...); | ||
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch deleted file mode 100644 index b7cd048165..0000000000 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg/0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 1 | From e52fc2c11c3935085ccf1a5707ce50223ad62b58 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Thu, 8 Aug 2024 18:04:17 +0100 | ||
| 4 | Subject: [PATCH] libavcodec/arm/mlpdsp_armv5te: fix label format to work with | ||
| 5 | binutils 2.43 | ||
| 6 | |||
| 7 | binutils 2.43 has stricter validation for labels[1] and results in errors | ||
| 8 | when building ffmpeg for armv5: | ||
| 9 | |||
| 10 | src/libavcodec/arm/mlpdsp_armv5te.S:232: Error: junk at end of line, first unrecognized character is `0' | ||
| 11 | |||
| 12 | Remove the leading zero in the "01" label to resolve this error. | ||
| 13 | |||
| 14 | [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://ffmpeg.org//pipermail/ffmpeg-devel/2024-August/332149.html] | ||
| 17 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 18 | --- | ||
| 19 | libavcodec/arm/mlpdsp_armv5te.S | 6 +++--- | ||
| 20 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/libavcodec/arm/mlpdsp_armv5te.S b/libavcodec/arm/mlpdsp_armv5te.S | ||
| 23 | index 4f9aa48..d315686 100644 | ||
| 24 | --- a/libavcodec/arm/mlpdsp_armv5te.S | ||
| 25 | +++ b/libavcodec/arm/mlpdsp_armv5te.S | ||
| 26 | @@ -229,7 +229,7 @@ A .endif | ||
| 27 | .endif | ||
| 28 | |||
| 29 | // Begin loop | ||
| 30 | -01: | ||
| 31 | +1: | ||
| 32 | .if TOTAL_TAPS == 0 | ||
| 33 | // Things simplify a lot in this case | ||
| 34 | // In fact this could be pipelined further if it's worth it... | ||
| 35 | @@ -241,7 +241,7 @@ A .endif | ||
| 36 | str ST0, [PST, #-4]! | ||
| 37 | str ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)] | ||
| 38 | str ST0, [PSAMP], #4 * MAX_CHANNELS | ||
| 39 | - bne 01b | ||
| 40 | + bne 1b | ||
| 41 | .else | ||
| 42 | .if \fir_taps & 1 | ||
| 43 | .set LOAD_REG, 1 | ||
| 44 | @@ -333,7 +333,7 @@ T orr AC0, AC0, AC1 | ||
| 45 | str ST3, [PST, #-4]! | ||
| 46 | str ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)] | ||
| 47 | str ST3, [PSAMP], #4 * MAX_CHANNELS | ||
| 48 | - bne 01b | ||
| 49 | + bne 1b | ||
| 50 | .endif | ||
| 51 | b 99f | ||
| 52 | |||
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_7.0.2.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_7.1.bb index db0aa60826..35dbda8c3d 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_7.0.2.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_7.1.bb | |||
| @@ -22,13 +22,10 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
| 22 | file://COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \ | 22 | file://COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \ |
| 23 | file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02" | 23 | file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02" |
| 24 | 24 | ||
| 25 | SRC_URI = " \ | 25 | SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ |
| 26 | https://www.ffmpeg.org/releases/${BP}.tar.xz \ | 26 | " |
| 27 | file://0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch \ | ||
| 28 | file://0001-configure-improve-check-for-POSIX-ioctl.patch \ | ||
| 29 | " | ||
| 30 | 27 | ||
| 31 | SRC_URI[sha256sum] = "8646515b638a3ad303e23af6a3587734447cb8fc0a0c064ecdb8e95c4fd8b389" | 28 | SRC_URI[sha256sum] = "40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6" |
| 32 | 29 | ||
| 33 | # https://nvd.nist.gov/vuln/detail/CVE-2023-39018 | 30 | # https://nvd.nist.gov/vuln/detail/CVE-2023-39018 |
| 34 | # https://github.com/bramp/ffmpeg-cli-wrapper/issues/291 | 31 | # https://github.com/bramp/ffmpeg-cli-wrapper/issues/291 |
