commit 2dc523696f182b26affd8d93c0d784e0d2d83594
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Jul 1 12:47:03 2023 +0100
Fix ffmpeg patch
ffmpeg6.patch | 4 ++--
megasync.spec | 3 ---
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/ffmpeg6.patch b/ffmpeg6.patch
index df22177..1b47f91 100644
--- a/ffmpeg6.patch
+++ b/ffmpeg6.patch
@@ -14,10 +14,10 @@
const char *GfxProviderFreeImage::supportedformatsFfmpeg()
{
-@@ -331,10 +333,12 @@ bool GfxProviderFreeImage::readbitmapFfm
+@@ -330,10 +332,12 @@ bool GfxProviderFreeImage::readbitmapFfm
+
// Force seeking to key frames
formatContext->seek2any = false;
- videoStream->skip_to_keyframe = true;
+#if LIBAVCODEC_VERSION_MAJOR < 60
if (decoder->capabilities & CAP_TRUNCATED)
{
diff --git a/megasync.spec b/megasync.spec
index ad308d4..a9c5389 100644
--- a/megasync.spec
+++ b/megasync.spec
@@ -118,9 +118,6 @@ tar -xvf %{SOURCE1} -C src/MEGASync/mega
mv src/MEGASync/mega/sdk-%{sdk_version}/* src/MEGASync/mega/
%patch 0 -p0
cp src/MEGASync/mega/LICENSE LICENSE-SDK
-# Fix ffmpeg build
-sed -i 's|videoStream->skip_to_keyframe|//videoStream->skip_to_keyframe|'
src/MEGASync/mega/src/gfx/freeimage.cpp
-# sed -i 's|videoStream->skip_to_keyframe|//videoStream->skip_to_keyframe|'
src/MEGASync/mega/src/gfx/qt.cpp
%if 0%{?fedora} >= 35
# Fix glibc for F35 and later
Show replies by date