first commit
This commit is contained in:
commit
528f89a79b
90 changed files with 13567 additions and 0 deletions
27
net-misc/megasync/files/megasync-4.10.0.0_ffmpeg6.patch
Normal file
27
net-misc/megasync/files/megasync-4.10.0.0_ffmpeg6.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
diff -Naur a/src/MEGASync/mega/src/gfx/freeimage.cpp b/src/MEGASync/mega/src/gfx/freeimage.cpp
|
||||
--- a/src/MEGASync/mega/src/gfx/freeimage.cpp 2023-09-27 22:20:26.000000000 +0900
|
||||
+++ b/src/MEGASync/mega/src/gfx/freeimage.cpp 2023-11-03 11:01:24.526257561 +0900
|
||||
@@ -209,12 +209,6 @@
|
||||
|
||||
#ifdef HAVE_FFMPEG
|
||||
|
||||
-#ifdef AV_CODEC_CAP_TRUNCATED
|
||||
-#define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
|
||||
-#else
|
||||
-#define CAP_TRUNCATED CODEC_CAP_TRUNCATED
|
||||
-#endif
|
||||
-
|
||||
const char *GfxProviderFreeImage::supportedformatsFfmpeg()
|
||||
{
|
||||
return ".264.265.3g2.3gp.3gpa.3gpp.3gpp2.mp3"
|
||||
@@ -330,10 +324,6 @@
|
||||
|
||||
// Force seeking to key frames
|
||||
formatContext->seek2any = false;
|
||||
- if (decoder->capabilities & CAP_TRUNCATED)
|
||||
- {
|
||||
- codecContext->flags |= CAP_TRUNCATED;
|
||||
- }
|
||||
|
||||
AVPixelFormat sourcePixelFormat = static_cast<AVPixelFormat>(codecParm->format);
|
||||
AVPixelFormat targetPixelFormat = AV_PIX_FMT_BGR24; //raw data expected by freeimage is in this format
|
||||
Loading…
Add table
Add a link
Reference in a new issue