forked from jengelh/ffmpeg-4
Accepting request 647061 from multimedia:libs
- Update ffmpeg to 4.1 * Lots of filter updates as usual: deblock, tmix, aplify, fftdnoiz, aderivative, aintegral, pal75bars, pal100bars, adeclick, adeclip, lensfun (wrapper), colorconstancy, 1D LUT filter (lut1d), cue, acue, transpose_npp, amultiply, Block-Matching 3d (bm3d) denoising filter, acrossover filter, audio denoiser as afftdn filter, sinc audio filter source, chromahold, setparams, vibrance, xstack, (a)graphmonitor filter yadif_cuda filter. * AV1 parser * Support for AV1 in MP4 * PCM VIDC decoder and encoder * libtensorflow backend for DNN based filters like srcnn * -- The following only enabled in third-party builds: * ATRAC9 decoder * AVS2 video decoder via libdavs2 * IMM4 video decoder * Brooktree ProSumer video decoder * MatchWare Screen Capture Codec decoder * WinCam Motion Video decoder * RemotelyAnywhere Screen Capture decoder * AVS2 video encoder via libxavs2 * ILBC decoder * SER demuxer * Decoding S12M timecode in H264 * For complete changelog, see https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n4.1 - Remove 0001-avcodec-libaom-fix-setting-amount-of-threads.patch (fixed upstream (bsc#776cdd1), remove ffmpeg-CVE-2018-13305.patch, remove 0001-avformat-flvenc-Check-audio-packet-size.patch, remove cve-2017-17555.diff (fixed upstream). OBS-URL: https://build.opensuse.org/request/show/647061 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ffmpeg-4?expand=0&rev=5
This commit is contained in:
commit
969f2dae0d
@ -1,51 +0,0 @@
|
||||
From 309c3a0e81be553626711912e90015c26f4b09ba Mon Sep 17 00:00:00 2001
|
||||
From: James Almer <jamrial@gmail.com>
|
||||
Date: Thu, 13 Sep 2018 13:26:00 -0300
|
||||
Subject: [PATCH] avcodec/libaom: fix setting amount of threads
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The libaom doxy says that a value of 0 for the threads fields is
|
||||
equivalent to a value of 1, whereas for avctx->thread_count it means
|
||||
the maximum amount of threads possible for the host system.
|
||||
|
||||
Use av_cpu_count() to get the correct thread count when auto threads
|
||||
is requested.
|
||||
|
||||
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
|
||||
Signed-off-by: James Almer <jamrial@gmail.com>
|
||||
---
|
||||
libavcodec/libaomdec.c | 2 +-
|
||||
libavcodec/libaomenc.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c
|
||||
index 6a2de6d47a..2530c9f76b 100644
|
||||
--- a/libavcodec/libaomdec.c
|
||||
+++ b/libavcodec/libaomdec.c
|
||||
@@ -43,7 +43,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
|
||||
AV1DecodeContext *ctx = avctx->priv_data;
|
||||
struct aom_codec_dec_cfg deccfg = {
|
||||
/* token partitions+1 would be a decent choice */
|
||||
- .threads = FFMIN(avctx->thread_count, 16)
|
||||
+ .threads = FFMIN(avctx->thread_count ? avctx->thread_count : av_cpu_count(), 16)
|
||||
};
|
||||
|
||||
av_log(avctx, AV_LOG_INFO, "%s\n", aom_codec_version_str());
|
||||
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
|
||||
index bbf4cf8b64..6a79d9b873 100644
|
||||
--- a/libavcodec/libaomenc.c
|
||||
+++ b/libavcodec/libaomenc.c
|
||||
@@ -319,7 +319,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
|
||||
enccfg.g_h = avctx->height;
|
||||
enccfg.g_timebase.num = avctx->time_base.num;
|
||||
enccfg.g_timebase.den = avctx->time_base.den;
|
||||
- enccfg.g_threads = avctx->thread_count;
|
||||
+ enccfg.g_threads = avctx->thread_count ? avctx->thread_count : av_cpu_count();
|
||||
|
||||
if (ctx->lag_in_frames >= 0)
|
||||
enccfg.g_lag_in_frames = ctx->lag_in_frames;
|
||||
--
|
||||
2.18.0
|
||||
|
@ -1,33 +0,0 @@
|
||||
From 6b67d7f05918f7a1ee8fc6ff21355d7e8736aa10 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||
Date: Sat, 28 Jul 2018 15:03:50 +0200
|
||||
Subject: [PATCH] avformat/flvenc: Check audio packet size
|
||||
|
||||
Fixes: Assertion failure
|
||||
Fixes: assert_flvenc.c:941_1.swf
|
||||
|
||||
Found-by: #CHEN HONGXU# <HCHEN017@e.ntu.edu.sg>
|
||||
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||
---
|
||||
libavformat/flvenc.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
|
||||
index 1c552a3e6b..e4863f1fc7 100644
|
||||
--- a/libavformat/flvenc.c
|
||||
+++ b/libavformat/flvenc.c
|
||||
@@ -883,6 +883,11 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
int flags = -1, flags_size, ret;
|
||||
int64_t cur_offset = avio_tell(pb);
|
||||
|
||||
+ if (par->codec_type == AVMEDIA_TYPE_AUDIO && !pkt->size) {
|
||||
+ av_log(s, AV_LOG_WARNING, "Empty audio Packet\n");
|
||||
+ return AVERROR(EINVAL);
|
||||
+ }
|
||||
+
|
||||
if (par->codec_id == AV_CODEC_ID_VP6F || par->codec_id == AV_CODEC_ID_VP6A ||
|
||||
par->codec_id == AV_CODEC_ID_VP6 || par->codec_id == AV_CODEC_ID_AAC)
|
||||
flags_size = 2;
|
||||
--
|
||||
2.18.0
|
||||
|
@ -1,19 +0,0 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2018-02-12 13:30:29.256158366 +0100
|
||||
|
||||
References: https://bugzilla.suse.com/show_bug.cgi?id=1072366
|
||||
References: CVE-2017-17555
|
||||
|
||||
Index: ffmpeg-4.0.1/libswresample/audioconvert.c
|
||||
===================================================================
|
||||
--- ffmpeg-4.0.1.orig/libswresample/audioconvert.c 2018-04-20 12:02:58.000000000 +0200
|
||||
+++ ffmpeg-4.0.1/libswresample/audioconvert.c 2018-06-30 00:17:17.785924731 +0200
|
||||
@@ -239,7 +239,7 @@ int swri_audio_convert(AudioConvert *ctx
|
||||
const uint8_t *pi= ich < 0 ? ctx->silence : in->ch[ich];
|
||||
uint8_t *po= out->ch[ch];
|
||||
uint8_t *end= po + os*len;
|
||||
- if(!po)
|
||||
+ if (!pi || !po)
|
||||
continue;
|
||||
ctx->conv_f(po+off*os, pi+off*is, is, os, end);
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a95c0cc9eb990e94031d2183f2e6e444cc61c99f6f182d1575c433d62afb2f97
|
||||
size 8662984
|
@ -1,11 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
iQEcBAABAgAGBQJbT0bXAAoJELQyLwTWdljYa7EIAIkBwOpBdZNuVvD2aNH82zmP
|
||||
1lnqsSFaO/OlQrs7M0cOGXgqmkIkVQZerWwO+VRct5oYut+MNCqVfT8L2pTNcHNW
|
||||
6aE3Jtvw00zwklNKI9e4oktypvcbe8m40QgPvNPu8lxiGZvafvGy53ioVI2eANFj
|
||||
PD2+BUGTRuotbm8skOpGTkU+RL74oPCdHEP9OcL3K4XnDFDMCXkjk34xCs4pnkV0
|
||||
2rVOque36M54DHQHa+qD1hxiqWiAyhEPnCklRwTRLLwPQuLiBDi/vExvDTsJHIuU
|
||||
AfdSsykmJz3c6biKOKOP6GYW7UjfsiIOV+G+uuZGJ/eBw0zXc38l8Rc7C1Kwmj4=
|
||||
=9xRf
|
||||
-----END PGP SIGNATURE-----
|
3
ffmpeg-4.1.tar.xz
Normal file
3
ffmpeg-4.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a38ec4d026efb58506a99ad5cd23d5a9793b4bf415f2c4c2e9c1bb444acd1994
|
||||
size 8890608
|
11
ffmpeg-4.1.tar.xz.asc
Normal file
11
ffmpeg-4.1.tar.xz.asc
Normal file
@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
iQEcBAABAgAGBQJb4NGUAAoJELQyLwTWdljYvM0IALBVSeOXmMzhNFDH8x0peai9
|
||||
IX6WaiOnVnKWmmguMl08h84+S9qAwm6ESBSF9Qaw+97/95d067BzisxmBlrMh2EX
|
||||
/EkbdHjsWdAi0Dt5XXluIn0fDX271ad6dWeT5HZqXh/V9qvDFPegv8W/vFIhsOc6
|
||||
nZoFzkBZFD5Mwpj2jZMD13Dsmfg7hwNdw/YJd2WH8emBE8Izd90espTEv5IKS8qb
|
||||
Zsk//H0psJfrDxBNZSSU3h2TvHccq5bqS3a3Kzw04aew0safp/aB87tUqxWoJ+PN
|
||||
UbjWm1UxRrhhmqcEPT/3l8H68AiPn/ZN/2AUYYZXgdzorcoPBwWQIPaO7GtocxE=
|
||||
=1RoC
|
||||
-----END PGP SIGNATURE-----
|
@ -1,3 +1,52 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 06 01:39:11 UTC 2018 - sean@suspend.net
|
||||
|
||||
- Update ffmpeg to 4.1
|
||||
* Lots of filter updates as usual: deblock, tmix, aplify,
|
||||
fftdnoiz, aderivative, aintegral, pal75bars, pal100bars,
|
||||
adeclick, adeclip, lensfun (wrapper), colorconstancy, 1D LUT
|
||||
filter (lut1d), cue, acue, transpose_npp, amultiply,
|
||||
Block-Matching 3d (bm3d) denoising filter, acrossover filter,
|
||||
audio denoiser as afftdn filter, sinc audio filter source,
|
||||
chromahold, setparams, vibrance, xstack,
|
||||
(a)graphmonitor filter yadif_cuda filter.
|
||||
* AV1 parser
|
||||
* Support for AV1 in MP4
|
||||
* PCM VIDC decoder and encoder
|
||||
* libtensorflow backend for DNN based filters like srcnn
|
||||
* -- The following only enabled in third-party builds:
|
||||
* ATRAC9 decoder
|
||||
* AVS2 video decoder via libdavs2
|
||||
* IMM4 video decoder
|
||||
* Brooktree ProSumer video decoder
|
||||
* MatchWare Screen Capture Codec decoder
|
||||
* WinCam Motion Video decoder
|
||||
* RemotelyAnywhere Screen Capture decoder
|
||||
* AVS2 video encoder via libxavs2
|
||||
* ILBC decoder
|
||||
* SER demuxer
|
||||
* Decoding S12M timecode in H264
|
||||
* For complete changelog, see https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n4.1
|
||||
- Remove 0001-avcodec-libaom-fix-setting-amount-of-threads.patch
|
||||
(fixed upstream (bsc#776cdd1), remove ffmpeg-CVE-2018-13305.patch,
|
||||
remove 0001-avformat-flvenc-Check-audio-packet-size.patch,
|
||||
remove cve-2017-17555.diff (fixed upstream).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
||||
Sat Nov 03 14:48:35 UTC 2018 - sean@suspend.net
|
||||
|
||||
- Remove 0001-avformat-fivenc-Check-audio-packet-size.patch (fixed upstream (bsc#8591d16)
|
||||
- Update ffmpeg to 4.0.3
|
||||
* For complete changelog, see https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n4.0.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 23 06:05:42 UTC 2018 - qzheng@suse.com
|
||||
|
||||
- Add ffmpeg-CVE-2018-13305.patch to add a missing check for
|
||||
negative values of mqaunt variable (CVE-2018-13305,
|
||||
bsc#1100345).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 13 23:17:35 UTC 2018 - 9+suse@cirno.systems
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
%define _major_version 4
|
||||
%define _major_expected 5
|
||||
Name: ffmpeg-4
|
||||
Version: 4.0.2
|
||||
Version: 4.1
|
||||
Release: 0
|
||||
Summary: Library for working with various multimedia formats
|
||||
License: LGPL-2.1-or-later AND GPL-2.0-or-later
|
||||
@ -117,9 +117,6 @@ Patch1: ffmpeg-libcdio_cdda-pkgconfig.patch
|
||||
Patch2: ffmpeg-arm6l.diff
|
||||
Patch3: ffmpeg-new-coder-errors.diff
|
||||
Patch4: ffmpeg-codec-choice.diff
|
||||
Patch5: cve-2017-17555.diff
|
||||
Patch6: 0001-avformat-flvenc-Check-audio-packet-size.patch
|
||||
Patch7: 0001-avcodec-libaom-fix-setting-amount-of-threads.patch
|
||||
BuildRequires: ladspa-devel
|
||||
BuildRequires: libgsm-devel
|
||||
BuildRequires: libmp3lame-devel
|
||||
|
Loading…
Reference in New Issue
Block a user