Accepting request 1001859 from home:iznogood:branches:multimedia:xine

- Add xine-lib-ffmpeg5.patch: Fix build with ffmpeg-5.

OBS-URL: https://build.opensuse.org/request/show/1001859
OBS-URL: https://build.opensuse.org/package/show/multimedia:xine/xine-lib?expand=0&rev=142
This commit is contained in:
Dominique Leuenberger 2022-09-17 00:48:35 +00:00 committed by Git OBS Bridge
parent 6bafa48d3a
commit fc4478a5f3
3 changed files with 28 additions and 0 deletions

22
xine-lib-ffmpeg5.patch Normal file
View File

@ -0,0 +1,22 @@
diff -Nur orig-xine-lib-1.2.12/src/combined/ffmpeg/demux_avformat.c xine-lib-1.2.12/src/combined/ffmpeg/demux_avformat.c
--- orig-xine-lib-1.2.12/src/combined/ffmpeg/demux_avformat.c 2022-03-06 17:31:23.000000000 +0100
+++ xine-lib-1.2.12/src/combined/ffmpeg/demux_avformat.c 2022-09-08 08:02:04.756525710 +0200
@@ -30,6 +30,7 @@
#include <errno.h>
#include <libavformat/avformat.h>
+#include <libavcodec/version.h>
#include <libavformat/avio.h>
#define LOG_MODULE "libavformat"
diff -Nur orig-xine-lib-1.2.12/src/combined/ffmpeg/input_avio.c xine-lib-1.2.12/src/combined/ffmpeg/input_avio.c
--- orig-xine-lib-1.2.12/src/combined/ffmpeg/input_avio.c 2022-03-06 17:31:23.000000000 +0100
+++ xine-lib-1.2.12/src/combined/ffmpeg/input_avio.c 2022-09-08 08:02:39.896994849 +0200
@@ -29,6 +29,7 @@
#include <pthread.h>
#include <libavformat/avio.h>
+#include <libavutil/avutil.h>
#define LOG_MODULE "libavio"
#define LOG_VERBOSE

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 8 06:05:38 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Add xine-lib-ffmpeg5.patch: Fix build with ffmpeg-5.
-------------------------------------------------------------------
Tue May 17 07:08:56 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -110,6 +110,7 @@ Patch0: xine-lib-libdvdread_udf.diff
Patch1: xine-lib-v4l-2.6.38.patch
# Add theora FOURCC to libxine I found an avi container that xine wouldn't play.
Patch4: xine-lib-theora.patch
Patch5: xine-lib-ffmpeg5.patch
%description
<p>Great video and multimediaplayer, supports DVD, MPEG, AVI, DivX, VCD, Quicktime ...</p><p>You need a frontend for xine-lib like <a href=http://packman.links2linux.de/package/xine-ui>xine-ui</a>, <a href=http://packman.links2linux.de/package/gxine>gxine</a>, <a href=http://packman.links2linux.de/package/kaffeine>kaffeine</a> or <a href=http://packman.links2linux.de/package/totem>totem</a>.</p><p>Since 1-rc6 the package number is reduced, all you may miss, is in the base package</p><p>If you want to play css encrypted Video-DVD's, you need to install <a href=http://packman.links2linux.de/package/libdvdcss2>libdvdcss</a>.</p>