Try to fix ppc build

el8
leigh123linux 8 years ago
parent 1785fadc8c
commit bed91c3b6e

@ -1,6 +1,6 @@
Name: mpv
Version: 0.23.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Movie player playing most video formats and DVDs
License: GPLv2+
URL: http://%{name}.io/
@ -18,6 +18,12 @@ Patch1: mpv-do-not-fail-with-minor-ffmpeg-updates.patch
Patch2: %{name}-old-ffmpeg.patch
%endif
# Fix ppc as upstream refuse to fix the issue
# https://github.com/mpv-player/mpv/issues/3776
%ifarch ppc64 ppc64le
Patch3: ppc_fix.patch
%endif
BuildRequires: pkgconfig(alsa)
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(dvdnav)
@ -159,6 +165,9 @@ fi
%{_libdir}/pkgconfig/mpv.pc
%changelog
* Thu Mar 23 2017 Leigh Scott <leigh123linux@googlemail.com> - 0.23.0-4
- Try to fix ppc build
* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 0.23.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

@ -0,0 +1,20 @@
--- a/audio/out/ao_sdl.c
+++ b/audio/out/ao_sdl.c
@@ -28,7 +28,6 @@
#include "options/m_option.h"
#include "osdep/timer.h"
-#include <SDL.h>
struct priv
{
@@ -36,6 +35,8 @@
float buflen;
};
+
+#include <SDL.h>
static const int fmtmap[][2] = {
{AF_FORMAT_U8, AUDIO_U8},
Loading…
Cancel
Save