forked from pool/ffmpeg-7
Compare commits
19 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
44e58ba163 | ||
|
ff2a908032 | ||
|
6cdd476369 | ||
|
9e7b4eb1dc | ||
|
702836018c | ||
|
8873641387 | ||
|
d2fc79c049 | ||
|
8cbc397a59 | ||
|
f123e2a485 | ||
|
ff88b22e6b | ||
|
fac57fe4a0 | ||
|
f66ec2e89b | ||
|
14763875da | ||
|
e437d3969c | ||
|
e0891e621b | ||
b9d6f48455 | |||
|
64b2585ab8 | ||
8ec2a2c630 | |||
1a19def9cd |
@ -0,0 +1,58 @@
|
||||
From 654bd47716c4f36719fb0f3f7fd8386d5ed0b916 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@arm.com>
|
||||
Date: Fri, 9 Aug 2024 11:32:00 +0100
|
||||
Subject: [PATCH] libavcodec/arm/mlpdsp_armv5te: fix label format to work with
|
||||
binutils 2.43
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
binutils 2.43 has stricter validation for labels[1] and results in errors
|
||||
when building ffmpeg for armv5:
|
||||
|
||||
src/libavcodec/arm/mlpdsp_armv5te.S:232: Error: junk at end of line, first unrecognized character is `0'
|
||||
|
||||
Remove the leading zero in the "01" label to resolve this error.
|
||||
|
||||
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b
|
||||
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
Signed-off-by: Martin Storsjö <martin@martin.st>
|
||||
---
|
||||
libavcodec/arm/mlpdsp_armv5te.S | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libavcodec/arm/mlpdsp_armv5te.S b/libavcodec/arm/mlpdsp_armv5te.S
|
||||
index 4f9aa485fd..d31568611c 100644
|
||||
--- a/libavcodec/arm/mlpdsp_armv5te.S
|
||||
+++ b/libavcodec/arm/mlpdsp_armv5te.S
|
||||
@@ -229,7 +229,7 @@ A .endif
|
||||
.endif
|
||||
|
||||
// Begin loop
|
||||
-01:
|
||||
+1:
|
||||
.if TOTAL_TAPS == 0
|
||||
// Things simplify a lot in this case
|
||||
// In fact this could be pipelined further if it's worth it...
|
||||
@@ -241,7 +241,7 @@ A .endif
|
||||
str ST0, [PST, #-4]!
|
||||
str ST0, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]
|
||||
str ST0, [PSAMP], #4 * MAX_CHANNELS
|
||||
- bne 01b
|
||||
+ bne 1b
|
||||
.else
|
||||
.if \fir_taps & 1
|
||||
.set LOAD_REG, 1
|
||||
@@ -333,7 +333,7 @@ T orr AC0, AC0, AC1
|
||||
str ST3, [PST, #-4]!
|
||||
str ST2, [PST, #4 * (MAX_BLOCKSIZE + MAX_FIR_ORDER)]
|
||||
str ST3, [PSAMP], #4 * MAX_CHANNELS
|
||||
- bne 01b
|
||||
+ bne 1b
|
||||
.endif
|
||||
b 99f
|
||||
|
||||
--
|
||||
2.46.0
|
||||
|
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
mtime: 1724235149
|
||||
commit: f803df26e37180e4cb16e1e5c0a357b23d53b87108ed61cd85ebf6b6e6fb130d
|
||||
url: https://src.opensuse.org/jengelh/ffmpeg-7
|
||||
revision: master
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bf92aeac4ca09ce9391f9f98bcb8c54a71230abd8e423126cf4496c89543fbd
|
||||
size 256
|
113
ffmpeg-7-fix-crashes.patch
Normal file
113
ffmpeg-7-fix-crashes.patch
Normal file
@ -0,0 +1,113 @@
|
||||
From 5b87869c09cece1583e74b6f796aa825a4765631 Mon Sep 17 00:00:00 2001
|
||||
From: James Almer <jamrial@gmail.com>
|
||||
Date: Wed, 31 Jul 2024 22:19:53 -0300
|
||||
Subject: [PATCH] avformat/mov: fix track handling when mixing IAMF and video
|
||||
tracks
|
||||
|
||||
Fixes crashes when muxing the two together.
|
||||
|
||||
Signed-off-by: James Almer <jamrial@gmail.com>
|
||||
---
|
||||
libavformat/movenc.c | 37 ++++++++++++++++++++++++++++---------
|
||||
1 file changed, 28 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
|
||||
index e40948edb8..d20d0bc064 100644
|
||||
--- a/libavformat/movenc.c
|
||||
+++ b/libavformat/movenc.c
|
||||
@@ -7149,7 +7149,9 @@ static int mov_create_dvd_sub_decoder_specific_info(MOVTrack *track,
|
||||
static int mov_init_iamf_track(AVFormatContext *s)
|
||||
{
|
||||
MOVMuxContext *mov = s->priv_data;
|
||||
- MOVTrack *track = &mov->tracks[0]; // IAMF if present is always the first track
|
||||
+ MOVTrack *track;
|
||||
+ IAMFContext *iamf;
|
||||
+ int first_iamf_idx = INT_MAX, last_iamf_idx = 0;
|
||||
int nb_audio_elements = 0, nb_mix_presentations = 0;
|
||||
int ret;
|
||||
|
||||
@@ -7171,24 +7173,24 @@ static int mov_init_iamf_track(AVFormatContext *s)
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
- track->iamf = av_mallocz(sizeof(*track->iamf));
|
||||
- if (!track->iamf)
|
||||
+ iamf = av_mallocz(sizeof(*iamf));
|
||||
+ if (!iamf)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
+
|
||||
for (int i = 0; i < s->nb_stream_groups; i++) {
|
||||
const AVStreamGroup *stg = s->stream_groups[i];
|
||||
switch(stg->type) {
|
||||
case AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT:
|
||||
for (int j = 0; j < stg->nb_streams; j++) {
|
||||
- track->first_iamf_idx = FFMIN(stg->streams[j]->index, track->first_iamf_idx);
|
||||
- track->last_iamf_idx = FFMAX(stg->streams[j]->index, track->last_iamf_idx);
|
||||
- stg->streams[j]->priv_data = track;
|
||||
+ first_iamf_idx = FFMIN(stg->streams[j]->index, first_iamf_idx);
|
||||
+ last_iamf_idx = FFMAX(stg->streams[j]->index, last_iamf_idx);
|
||||
}
|
||||
|
||||
- ret = ff_iamf_add_audio_element(track->iamf, stg, s);
|
||||
+ ret = ff_iamf_add_audio_element(iamf, stg, s);
|
||||
break;
|
||||
case AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION:
|
||||
- ret = ff_iamf_add_mix_presentation(track->iamf, stg, s);
|
||||
+ ret = ff_iamf_add_mix_presentation(iamf, stg, s);
|
||||
break;
|
||||
default:
|
||||
av_assert0(0);
|
||||
@@ -7197,8 +7199,20 @@ static int mov_init_iamf_track(AVFormatContext *s)
|
||||
return ret;
|
||||
}
|
||||
|
||||
+ track = &mov->tracks[first_iamf_idx];
|
||||
+ track->iamf = iamf;
|
||||
+ track->first_iamf_idx = first_iamf_idx;
|
||||
+ track->last_iamf_idx = last_iamf_idx;
|
||||
track->tag = MKTAG('i','a','m','f');
|
||||
|
||||
+ for (int i = 0; i < s->nb_stream_groups; i++) {
|
||||
+ AVStreamGroup *stg = s->stream_groups[i];
|
||||
+ if (stg->type != AV_STREAM_GROUP_PARAMS_IAMF_AUDIO_ELEMENT)
|
||||
+ continue;
|
||||
+ for (int j = 0; j < stg->nb_streams; j++)
|
||||
+ stg->streams[j]->priv_data = track;
|
||||
+ }
|
||||
+
|
||||
ret = avio_open_dyn_buf(&track->iamf_buf);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
@@ -7209,6 +7223,7 @@ static int mov_init_iamf_track(AVFormatContext *s)
|
||||
static int mov_init(AVFormatContext *s)
|
||||
{
|
||||
MOVMuxContext *mov = s->priv_data;
|
||||
+ int has_iamf = 0;
|
||||
int i, ret;
|
||||
|
||||
mov->fc = s;
|
||||
@@ -7359,6 +7374,7 @@ static int mov_init(AVFormatContext *s)
|
||||
}
|
||||
st->priv_data = st;
|
||||
}
|
||||
+ has_iamf = 1;
|
||||
|
||||
if (!mov->nb_tracks) // We support one track for the entire IAMF structure
|
||||
mov->nb_tracks++;
|
||||
@@ -7455,8 +7471,11 @@ static int mov_init(AVFormatContext *s)
|
||||
for (int j = 0, i = 0; j < s->nb_streams; j++) {
|
||||
AVStream *st = s->streams[j];
|
||||
|
||||
- if (st != st->priv_data)
|
||||
+ if (st != st->priv_data) {
|
||||
+ if (has_iamf)
|
||||
+ i += has_iamf--;
|
||||
continue;
|
||||
+ }
|
||||
st->priv_data = &mov->tracks[i++];
|
||||
}
|
||||
|
||||
--
|
||||
2.41.0
|
||||
|
BIN
ffmpeg-7.0.2.tar.xz
(Stored with Git LFS)
Normal file
BIN
ffmpeg-7.0.2.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
11
ffmpeg-7.0.2.tar.xz.asc
Normal file
11
ffmpeg-7.0.2.tar.xz.asc
Normal file
@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQFMBAABCgA2FiEE/PmG6hXm4pOlZE8QtDIvBNZ2WNgFAmatZQYYHGZmbXBlZy1k
|
||||
ZXZlbEBmZm1wZWcub3JnAAoJELQyLwTWdljYIlcIAKF1VWqnhhKkBHSxEnH8ipUH
|
||||
nlJmPitKaJTwgtAtHGH8DL4XlgUwxfws9YohJ6V2fz/LjD+4rcU1BB9lMKNTaEW3
|
||||
g27lIRHXC571OGgBKJFadhsbULtUu9oUOIcqS28zOl3fsok/G7NVd3ajkpiRUPhu
|
||||
LRXUXNbCIwtXbIdS0yECpiRcHMj/hX6nkY3yHrmWXAts/TtmIQyaNTbnC4ervA1s
|
||||
Ijc4cY/unb6OD9DpmC6DznVykyfzc2GjjCiNxRXrljp+MaZ7jBEMwjXfOIATwBwj
|
||||
gCN+N6nlxc5e3gMOGcAJy93iD9HpbgVDAn6S6jnB/z5+Tyv6ZeP+sytsgOCNjlQ=
|
||||
=R372
|
||||
-----END PGP SIGNATURE-----
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4426a94dd2c814945456600c8adfc402bee65ec14a70e8c531ec9a2cd651da7b
|
||||
size 10791240
|
@ -1,11 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQFMBAABCAA2FiEE/PmG6hXm4pOlZE8QtDIvBNZ2WNgFAmYPNtMYHGZmbXBlZy1k
|
||||
ZXZlbEBmZm1wZWcub3JnAAoJELQyLwTWdljYFdUIAIOFgLplbe7CHY0G3bQuCK8N
|
||||
Q+js2eLPxKNbeBhshcHDyNResAT+uHE7fQYRFUcETf5qqoPHyDptbG/o+onlGW8M
|
||||
vNwu6wTC3XiFjKjJKBRwyXYS31J+R/re2w+LiEI+OnekRhaQ/vbj1bbjREEQLtOv
|
||||
7086Oc6ZzMAsxjc6wGde4eJkhTQT8HYF6lU0Bsm4yeqCAcppfGv6OwZn8fyQ/L9i
|
||||
PaqFJFzs4C8PdRRdSQ7VifAcAAmyHNoRY611ZCbnJvoc7oEU44SVIKsryqRBunoX
|
||||
aAZ1eNwoI/Oz/uC/yK+S3oaAauZuUZFxgc0hqCxYLZF5TeRvF4Y8cPTTymTuVDM=
|
||||
=Hz9R
|
||||
-----END PGP SIGNATURE-----
|
@ -1,3 +1,71 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 21 09:58:42 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Add 0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch
|
||||
to resolve build failure on armv7 [boo#1229338]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 07:37:24 UTC 2024 - Cliff Zhao <qzhao@suse.com>
|
||||
|
||||
- Update to version 7.0.2:
|
||||
* avcodec/snow: Fix off by 1 error in run_buffer
|
||||
* avcodec/utils: apply the same alignment to YUV410 as we do to YUV420 for snow
|
||||
* avformat/iamf_parse: Check for 0 samples
|
||||
* swscale: [loongarch] Fix checkasm-sw_yuv2rgb failure.
|
||||
* avcodec/aacps_tablegen_template: don't redefine CONFIG_HARDCODED_TABLES
|
||||
* avutil/hwcontext_vaapi: use the correct type for VASurfaceAttribExternalBuffers.buffers
|
||||
* avcodec/pcm-bluray/dvd: Use correct pointer types on BE
|
||||
* avcodec/pngenc: fix sBIT writing for indexed-color PNGs
|
||||
* avcodec/pngdec: use 8-bit sBIT cap for indexed PNGs per spec
|
||||
* avformat/mov: check that child boxes of trak are only present inside it
|
||||
* avformat/mov: check that sample and chunk count is 1 for HEIF
|
||||
* avcodec/videotoolboxenc: Fix bitrate doesn't work as expected
|
||||
* avdevice/dshow: Don't skip audio devices if no video device is present
|
||||
* avcodec/hdrenc: Allocate more space
|
||||
* avcodec/cfhdenc: Height of 16 is not supported
|
||||
* avcodec/cfhdenc: Allocate more space
|
||||
* avcodec/osq: fix integer overflow when applying factor
|
||||
* avcodec/osq: avoid using too large numbers for shifts and integers in update_residue_parameter()
|
||||
* avcodec/hevcdec: fix segfault on invalid film grain metadata (CVE-2024-32228, bsc#1227277)
|
||||
* avfilter/vf_tiltandshift: fix buffer offset for yuv422p input (CVE-2024-32229, bsc#1227295)
|
||||
* avcodec/mpegvideo_enc: Fix 1 line and one column images (CVE-2024-32230, bsc#1227296)
|
||||
- Drop ffmpeg-7-CVE-2024-32228.patch:
|
||||
The fix has been merged.
|
||||
- Drop ffmpeg-7-CVE-2024-32229.patch:
|
||||
The fix has been merged.
|
||||
- Drop ffmpeg-7-CVE-2024-32230.patch:
|
||||
The fix has been merged.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 3 08:52:26 UTC 2024 - Cliff Zhao <qzhao@suse.com>
|
||||
|
||||
- Add ffmpeg-7-fix-crashes.patch:
|
||||
Backporting 5b87869c from upstream, fix track handling when mixing
|
||||
IAMF and video tracks, Fixes crashes when muxing the two together.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 5 14:18:52 UTC 2024 - Cliff Zhao <qzhao@suse.com>
|
||||
|
||||
- Add ffmpeg-7-CVE-2024-32229.patch:
|
||||
Backporting a528a54e from upstream, Fix buffer offset for yuv422p
|
||||
input.
|
||||
(CVE-2024-32229, bsc#1227295)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 12:26:28 UTC 2024 - Cliff Zhao <qzhao@suse.com>
|
||||
|
||||
- Add ffmpeg-7-CVE-2024-32230.patch:
|
||||
Backporting 96449cfe from upstream, Fix 1 line and one column images.
|
||||
(CVE-2024-32230, bsc#1227296)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 11:57:01 UTC 2024 - Cliff Zhao <qzhao@suse.com>
|
||||
|
||||
- Add ffmpeg-7-CVE-2024-32228.patch:
|
||||
Backporting 45964876 from upstream, Fix segfault on invalid film
|
||||
grain metadata.
|
||||
(CVE-2024-32228, bsc#1227277)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 7 11:39:41 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -86,15 +86,13 @@
|
||||
%define _major_expected 8
|
||||
|
||||
Name: ffmpeg-7
|
||||
Version: 7.0
|
||||
Version: 7.0.2
|
||||
Release: 0
|
||||
Summary: Set of libraries for working with various multimedia formats
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Multimedia/Video/Editors and Convertors
|
||||
URL: https://ffmpeg.org/
|
||||
|
||||
#Freshcode-URL: http://freshcode.club/projects/ffmpeg
|
||||
#Git-Clone: git://source.ffmpeg.org/ffmpeg
|
||||
URL: https://ffmpeg.org/
|
||||
Source: https://www.ffmpeg.org/releases/%_name-%version.tar.xz
|
||||
Source2: https://www.ffmpeg.org/releases/%_name-%version.tar.xz.asc
|
||||
Source3: ffmpeg-7-rpmlintrc
|
||||
@ -104,7 +102,6 @@ Source6: ffmpeg-dlopen-headers.tar.xz
|
||||
Source92: ffmpeg_get_dlopen_headers.sh
|
||||
Source98: http://ffmpeg.org/ffmpeg-devel.asc#/ffmpeg-7.keyring
|
||||
Source99: baselibs.conf
|
||||
|
||||
Patch1: ffmpeg-arm6l.diff
|
||||
Patch2: ffmpeg-new-coder-errors.diff
|
||||
Patch3: ffmpeg-codec-choice.diff
|
||||
@ -112,7 +109,8 @@ Patch4: ffmpeg-4.2-dlopen-fdk_aac.patch
|
||||
Patch5: work-around-abi-break.patch
|
||||
Patch10: ffmpeg-chromium.patch
|
||||
Patch91: ffmpeg-dlopen-openh264.patch
|
||||
|
||||
Patch95: ffmpeg-7-fix-crashes.patch
|
||||
Patch96: 0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch
|
||||
BuildRequires: ladspa-devel
|
||||
BuildRequires: libgsm-devel
|
||||
BuildRequires: libmp3lame-devel >= 3.98.3
|
||||
@ -809,7 +807,7 @@ done
|
||||
%else
|
||||
%define _name ffmpeg
|
||||
Name: ffmpeg-7-mini
|
||||
Version: 7.0
|
||||
Version: 7.0.2
|
||||
Release: 0
|
||||
Summary: Set of libraries for working with various multimedia formats
|
||||
License: GPL-3.0-or-later
|
||||
@ -825,6 +823,8 @@ Patch4: ffmpeg-4.2-dlopen-fdk_aac.patch
|
||||
Patch5: work-around-abi-break.patch
|
||||
Patch10: ffmpeg-chromium.patch
|
||||
Patch91: ffmpeg-dlopen-openh264.patch
|
||||
Patch95: ffmpeg-7-fix-crashes.patch
|
||||
Patch96: 0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch
|
||||
BuildRequires: c_compiler
|
||||
Requires: this-is-only-for-build-envs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user