about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/megasync/ffmpeg_44.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/megasync/ffmpeg_44.patch')
-rw-r--r--nixpkgs/pkgs/applications/misc/megasync/ffmpeg_44.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/megasync/ffmpeg_44.patch b/nixpkgs/pkgs/applications/misc/megasync/ffmpeg_44.patch
new file mode 100644
index 000000000000..901635e43f3e
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/megasync/ffmpeg_44.patch
@@ -0,0 +1,14 @@
+Index: megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp
+===================================================================
+--- megasync-4.6.1.0.orig/src/MEGASync/mega/src/gfx/freeimage.cpp
++++ megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp
+@@ -253,7 +253,8 @@ bool GfxProcFreeImage::readbitmapFfmpeg(
+ 
+     // Force seeking to key frames
+     formatContext->seek2any = false;
+-    videoStream->skip_to_keyframe = true;
++    // no longer exposed in ffmpeg 4.4; the line above should be sufficient
++    //videoStream->skip_to_keyframe = true;
+     if (decoder->capabilities & CAP_TRUNCATED)
+     {
+         codecContext->flags |= CAP_TRUNCATED;