mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Ports: Update ffmpeg's patches to use git patches
This commit is contained in:
parent
47a840ea13
commit
5da5c4d9fa
Notes:
sideshowbarker
2024-07-17 10:51:19 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/5da5c4d9fa Pull-request: https://github.com/SerenityOS/serenity/pull/14055 Reviewed-by: https://github.com/danners Reviewed-by: https://github.com/timschumi
2 changed files with 20 additions and 6 deletions
|
@ -1,3 +1,14 @@
|
|||
From d64d7a469a8524d2ea8121d10844ff73feef3b55 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Ross <pross@xvid.org>
|
||||
Date: Tue, 1 Mar 2022 19:50:19 +1100
|
||||
Subject: [PATCH] Assume that EDOM exists
|
||||
|
||||
Since errno values are not numeric constants on serenity, this won't
|
||||
work in cpp, assume that it exists.
|
||||
---
|
||||
libavutil/error.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libavutil/error.h b/libavutil/error.h
|
||||
index 0d3269a..a54d80d 100644
|
||||
--- a/libavutil/error.h
|
||||
|
@ -11,3 +22,6 @@ index 0d3269a..a54d80d 100644
|
|||
#define AVERROR(e) (-(e)) ///< Returns a negative error code from a POSIX error code, to return from library functions.
|
||||
#define AVUNERROR(e) (-(e)) ///< Returns a POSIX error code from a library function error return value.
|
||||
#else
|
||||
--
|
||||
2.36.1
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
# Patches for FFmpeg on SerenityOS
|
||||
# Patches for ffmpeg on SerenityOS
|
||||
|
||||
## `errno-is-not-valid-during-cpp.patch`
|
||||
## `0001-Assume-that-EDOM-exists.patch`
|
||||
|
||||
FFmpeg performs a preprocessor-time test on errno values. This test does
|
||||
not work on SerenityOS because our errno values are described by an
|
||||
enum, and therefore are only available at compile time.
|
||||
Assume that EDOM exists
|
||||
|
||||
Since errno values are not numeric constants on serenity, this won't
|
||||
work in cpp, assume that it exists.
|
||||
|
||||
The patch removes the preprocessor-time test.
|
||||
|
|
Loading…
Reference in a new issue