]> git.pld-linux.org Git - packages/freerdp.git/commitdiff
- fix building with ffmpeg 4.0 auto/th/freerdp-1.0.2-8
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 29 Apr 2018 07:48:09 +0000 (09:48 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 29 Apr 2018 07:48:09 +0000 (09:48 +0200)
- rel 8

ffmpeg4.patch [new file with mode: 0644]
freerdp.spec

diff --git a/ffmpeg4.patch b/ffmpeg4.patch
new file mode 100644 (file)
index 0000000..320eff2
--- /dev/null
@@ -0,0 +1,13 @@
+--- freerdp-1.0.2/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c~  2018-04-29 09:45:20.000000000 +0200
++++ freerdp-1.0.2/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c   2018-04-29 09:46:56.321113085 +0200
+@@ -154,8 +154,8 @@
+               }
+       }
+-      if (mdecoder->codec->capabilities & CODEC_CAP_TRUNCATED)
+-              mdecoder->codec_context->flags |= CODEC_FLAG_TRUNCATED;
++      if (mdecoder->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
++              mdecoder->codec_context->flags |= AV_CODEC_FLAG_TRUNCATED;
+       return true;
+ }
index b06c3e04f7b5e53bd5c4d2ed9a3a1811a4e5e318..c984abcd7df89a3fa4a816150be3f9bf2d45e04a 100644 (file)
@@ -17,13 +17,14 @@ Summary:    Remote Desktop Protocol client
 Summary(pl.UTF-8):     Klient protokołu RDP
 Name:          freerdp
 Version:       1.0.2
-Release:       7
+Release:       8
 License:       Apache v2.0
 Group:         Applications/Communications
 Source0:       http://pub.freerdp.com/releases/%{name}-%{version}.tar.gz
 # Source0-md5: 08f0e07d8d77e142f7dc39e4033a458d
 Patch0:                %{name}-ffmpeg.patch
 Patch1:                ffmpeg3.patch
+Patch2:                ffmpeg4.patch
 URL:           http://www.freerdp.com/
 %{?with_directfb:BuildRequires:        DirectFB-devel}
 %{?with_alsa:BuildRequires:    alsa-lib-devel}
@@ -190,6 +191,7 @@ Wtyczki PulseAudio do obsługi dźwięku RDP.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 cat << EOF > xfreerdp.desktop
 [Desktop Entry]
This page took 0.088139 seconds and 4 git commands to generate.