summarylogtreecommitdiffstats
path: root/build-fixes.patch
blob: ffd9e876ec18246acf5e6d8c218e79030fda9cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/CMakeLists.txt	2021-05-02 21:38:58.266305435 +0200
+++ b/CMakeLists.txt	2021-05-02 21:40:19.485151388 +0200
@@ -5,7 +5,7 @@
 include(files.cmake)
 
 # Get prebuilt ffmpeg folders for windows builds
-set(ffmpegIncHint "ffmpeg/include")
+set(ffmpegIncHint "/usr/include")
 
 # figure out platform defaults for certain things
 if (WIN32)
@@ -34,7 +34,7 @@
 endif()
 
 
-set(ffmpegLibHint "${CMAKE_CURRENT_SOURCE_DIR}/${defFFmpegLibHint}" CACHE PATH "directory with static ffmpeg libs")
+set(ffmpegLibHint "/usr/lib" CACHE PATH "directory with static ffmpeg libs")
 set(libSuffix ${defLibSuffix} CACHE STRING "output library suffix")
 set(pluginDir ${defPluginDir} CACHE PATH "TS3 plugin directory (for file copy)")
 
--- a/src/inputfileffmpeg.cpp	2021-05-02 21:46:10.856210178 +0200
+++ b/src/inputfileffmpeg.cpp	2021-05-02 21:46:26.274256126 +0200
@@ -416,7 +416,7 @@
 
 	if(properFrames == 0)
 	{
-		if(m_codecCtx->codec->capabilities & CODEC_CAP_DELAY && m_convertedSamples < m_decodedSamplesTargetSR)
+		if(m_codecCtx->codec->capabilities & AV_CODEC_CAP_DELAY && m_convertedSamples < m_decodedSamplesTargetSR)
 		{
 			// Some codecs will cause frames to be buffered up in the decoding process. If the CODEC_CAP_DELAY flag
 			// is set, there can be buffered up frames that need to be flushed, so we'll do that