ffmpeg_4: 4.4 -> 4.4.1
This commit is contained in:
parent
45e2dc61fd
commit
205b617053
2 changed files with 3 additions and 74 deletions
|
@ -2,48 +2,12 @@
|
|||
# Darwin frameworks
|
||||
, Cocoa, CoreMedia, VideoToolbox
|
||||
, stdenv, lib
|
||||
, fetchpatch
|
||||
, ...
|
||||
}@args:
|
||||
|
||||
callPackage ./generic.nix (rec {
|
||||
version = "4.4";
|
||||
branch = "4.4";
|
||||
sha256 = "03kxc29y8190k4y8s8qdpsghlbpmchv1m8iqygq2qn0vfm4ka2a2";
|
||||
version = "4.4.1";
|
||||
branch = version;
|
||||
sha256 = "0hmck0placn12kd9l0wam70mrpgfs2nlfmi8krd135gdql5g5jcg";
|
||||
darwinFrameworks = [ Cocoa CoreMedia VideoToolbox ];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "CVE-2021-33815.patch";
|
||||
url = "https://github.com/FFmpeg/FFmpeg/commit/26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777.patch";
|
||||
sha256 = "0l8dqga5845f7d3wdbvd05i23saldq4pm2cyfdgszbr0c18sxagf";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2021-38114.patch";
|
||||
url = "https://github.com/FFmpeg/FFmpeg/commit/7150f9575671f898382c370acae35f9087a30ba1.patch";
|
||||
sha256 = "0gwkc7v1wsh4j0am2nnskhsca1b5aqzhcfd41sd9mh2swsdyf27i";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2021-38171.patch";
|
||||
url = "https://github.com/FFmpeg/FFmpeg/commit/9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6.patch";
|
||||
sha256 = "0b8hsb45izw7w1vb2b94k9f6kvn2shxrap5ip1krdxg6hs7an0x8";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "CVE-2021-38291.patch";
|
||||
url = "https://github.com/FFmpeg/FFmpeg/commit/e01d306c647b5827102260b885faa223b646d2d1.patch";
|
||||
sha256 = "0p2p8gcnb5j469xa3czfssm09w3jk08kz8rnl8wi2l9aj9l08my9";
|
||||
})
|
||||
# Fix incorrect segment length in HLS child playlist with fmp4 segment format
|
||||
# FIXME remove in version 4.5
|
||||
# https://trac.ffmpeg.org/ticket/9193
|
||||
# https://trac.ffmpeg.org/ticket/9205
|
||||
(fetchpatch {
|
||||
name = "ffmpeg_fix_incorrect_segment_length_in_hls.patch";
|
||||
url = "https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=59032494e81a1a65c0b960aaae7ec4c2cc9db35a";
|
||||
sha256 = "03zz1lw51kkc3g3vh47xa5hfiz3g3g1rbrll3kcnslvwylmrqmy3";
|
||||
})
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# Work around https://trac.ffmpeg.org/ticket/9242
|
||||
./v2-0001-avcodec-videotoolboxenc-define-TARGET_CPU_ARM64-t.patch
|
||||
];
|
||||
} // args)
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
From 5b562aaddbc6e7a94a079c2e88230b205a7f4d73 Mon Sep 17 00:00:00 2001
|
||||
From: Zane van Iperen <zane@zanevaniperen.com>
|
||||
Date: Sat, 15 May 2021 19:33:52 +1000
|
||||
Subject: [PATCH v2] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if
|
||||
not provided by the SDK
|
||||
|
||||
Fixes build failure on older SDKs without it.
|
||||
|
||||
Fixes #9242
|
||||
|
||||
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
|
||||
---
|
||||
libavcodec/videotoolboxenc.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
NB: This is untested, I do not have a Mac to try it on.
|
||||
|
||||
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
|
||||
index 58239e0ab9..f063a86e73 100644
|
||||
--- a/libavcodec/videotoolboxenc.c
|
||||
+++ b/libavcodec/videotoolboxenc.c
|
||||
@@ -50,6 +50,10 @@ enum { kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 'xf20' };
|
||||
enum { kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 'x420' };
|
||||
#endif
|
||||
|
||||
+#ifndef TARGET_CPU_ARM64
|
||||
+# define TARGET_CPU_ARM64 0
|
||||
+#endif
|
||||
+
|
||||
typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc,
|
||||
size_t parameterSetIndex,
|
||||
const uint8_t **parameterSetPointerOut,
|
||||
--
|
||||
2.29.3
|
||||
|
Loading…
Reference in a new issue