-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3065 from DexerBR/bump_recipe_versions
Bump `FFMpegRecipe` and `PyAVRecipe` versions
- Loading branch information
Showing
4 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pythonforandroid/recipes/av/patches/compilation_syntax_errors.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/av/container/streams.pyx b/av/container/streams.pyx | ||
index 17e4992..502ac5a 100644 | ||
--- a/av/container/streams.pyx | ||
+++ b/av/container/streams.pyx | ||
@@ -144,7 +144,7 @@ cdef class StreamContainer: | ||
|
||
return stream_index | ||
|
||
- def best(self, str type, /, Stream related = None): | ||
+ def best(self, str type, Stream related=None): | ||
"""best(type: Literal["video", "audio", "subtitle", "attachment", "data"], /, related: Stream | None) | ||
Finds the "best" stream in the file. Wraps :ffmpeg:`av_find_best_stream`. Example:: | ||
|
||
diff --git a/av/filter/context.pyx b/av/filter/context.pyx | ||
index b820d3d..8908b56 100644 | ||
--- a/av/filter/context.pyx | ||
+++ b/av/filter/context.pyx | ||
@@ -77,7 +77,8 @@ cdef class FilterContext: | ||
|
||
@property | ||
def graph(self): | ||
- if (graph := self._graph()): | ||
+ graph = self._graph() | ||
+ if graph: | ||
return graph | ||
else: | ||
raise RuntimeError("graph is unallocated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
--- ./configure 2020-10-11 19:12:16.759760904 +0200 | ||
+++ ./configure.patch 2020-10-11 19:15:49.059533563 +0200 | ||
@@ -6361,7 +6361,7 @@ | ||
enabled librsvg && require_pkg_config librsvg librsvg-2.0 librsvg-2.0/librsvg/rsvg.h rsvg_handle_render_cairo | ||
diff --git a/configure b/configure | ||
index 5af693c954..d1d0a4f0a2 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -6800,7 +6800,7 @@ enabled librsvg && require_pkg_config librsvg librsvg-2.0 librsvg-2.0/ | ||
enabled librtmp && require_pkg_config librtmp librtmp librtmp/rtmp.h RTMP_Socket | ||
enabled librubberband && require_pkg_config librubberband "rubberband >= 1.8.1" rubberband/rubberband-c.h rubberband_new -lstdc++ && append librubberband_extralibs "-lstdc++" | ||
enabled libshaderc && require_pkg_config spirv_compiler "shaderc >= 2019.1" shaderc/shaderc.h shaderc_compiler_initialize | ||
-enabled libshine && require_pkg_config libshine shine shine/layer3.h shine_encode_buffer | ||
+enabled libshine && require "shine" shine/layer3.h shine_encode_buffer -lshine -lm | ||
enabled libsmbclient && { check_pkg_config libsmbclient smbclient libsmbclient.h smbc_init || | ||
require libsmbclient libsmbclient.h smbc_init -lsmbclient; } | ||
enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++ | ||
enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++ | ||
@@ -6850,7 +6850,7 @@ enabled libvpx && { | ||
enabled libwebp && { | ||
enabled libwebp_encoder && require_pkg_config libwebp "libwebp >= 0.2.0" webp/encode.h WebPGetEncoderVersion | ||
enabled libwebp_anim_encoder && check_pkg_config libwebp_anim_encoder "libwebpmux >= 0.4.0" webp/mux.h WebPAnimEncoderOptionsInit; } | ||
-enabled libx264 && require_pkg_config libx264 x264 "stdint.h x264.h" x264_encoder_encode && | ||
+enabled libx264 && require "x264" "stdint.h x264.h" x264_encoder_encode && | ||
require_cpp_condition libx264 x264.h "X264_BUILD >= 122" && { | ||
[ "$toolchain" != "msvc" ] || | ||
require_cpp_condition libx264 x264.h "X264_BUILD >= 158"; } && |