Accepting request 361883 from home:enzokiel:branches:multimedia:xine

- Added xine-lib-ffmpeg3.0.patch to build against ffmpeg-3.0
  libraries on PMBS.
- Add pkgconfig(libva-glx) to BuildRequires because it's a separate
  package for openSUSE > 13.2.

OBS-URL: https://build.opensuse.org/request/show/361883
OBS-URL: https://build.opensuse.org/package/show/multimedia:xine/xine-lib?expand=0&rev=80
This commit is contained in:
Ludwig Nussel 2016-03-30 09:33:57 +00:00 committed by Git OBS Bridge
parent 5987e9bef4
commit 83b683f262
3 changed files with 66 additions and 3 deletions

51
xine-lib-ffmpeg3.0.patch Normal file
View File

@ -0,0 +1,51 @@
--- src/combined/ffmpeg/ff_audio_decoder.c.orig 2014-06-09 18:08:42.000000000 +0200
+++ src/combined/ffmpeg/ff_audio_decoder.c 2016-02-26 14:31:45.000000000 +0100
@@ -593,7 +593,7 @@
int got_frame;
float gain = this->class->gain;
if (!this->av_frame)
- this->av_frame = avcodec_alloc_frame ();
+ this->av_frame = av_frame_alloc ();
consumed = avcodec_decode_audio4 (this->context, this->av_frame, &got_frame, &avpkt);
if ((consumed >= 0) && got_frame) {
@@ -1071,7 +1071,7 @@
/* try to reset the wma decoder */
if( this->decoder_ok ) {
#if AVAUDIO > 3
- avcodec_free_frame (&this->av_frame);
+ av_frame_free (&this->av_frame);
#endif
pthread_mutex_lock (&ffmpeg_lock);
avcodec_close (this->context);
@@ -1106,7 +1106,7 @@
if( this->context && this->decoder_ok ) {
#if AVAUDIO > 3
- avcodec_free_frame (&this->av_frame);
+ av_frame_free (&this->av_frame);
#endif
pthread_mutex_lock (&ffmpeg_lock);
avcodec_close (this->context);
--- src/combined/ffmpeg/ff_video_decoder.c.orig 2014-06-24 18:21:06.000000000 +0200
+++ src/combined/ffmpeg/ff_video_decoder.c 2016-02-26 14:31:45.000000000 +0100
@@ -2526,7 +2526,7 @@
this->stream = stream;
this->class = (ff_video_class_t *) class_gen;
- this->av_frame = avcodec_alloc_frame();
+ this->av_frame = av_frame_alloc();
this->context = avcodec_alloc_context();
this->context->opaque = this;
#if AVPALETTE == 1
--- src/dxr3/ffmpeg_encoder.c.orig 2014-03-13 05:06:09.000000000 +0200
+++ src/dxr3/ffmpeg_encoder.c 2016-02-26 14:31:45.000000000 +0100
@@ -164,7 +164,7 @@
"dxr3_mpeg_encoder: Couldn't start the ffmpeg library\n");
return 0;
}
- this->picture = avcodec_alloc_frame();
+ this->picture = av_frame_alloc();
if (!this->picture) {
xprintf(drv->class->xine, XINE_VERBOSITY_LOG,
"dxr3_mpeg_encoder: Couldn't allocate ffmpeg frame\n");

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Feb 26 15:12:34 UTC 2016 - joerg.lorenzen@ki.tng.de
- Added xine-lib-ffmpeg3.0.patch to build against ffmpeg-3.0
libraries on PMBS.
- Add pkgconfig(libva-glx) to BuildRequires because it's a separate
package for openSUSE > 13.2.
-------------------------------------------------------------------
Mon Sep 21 06:40:47 UTC 2015 - olaf@aepfle.de

View File

@ -73,12 +73,13 @@ BuildRequires: lirc
%endif
%if !%{with distributable}
BuildRequires: libfaad-devel
BuildRequires: pkgconfig(libavcodec) >= 51.68.0
BuildRequires: pkgconfig(libavutil) >= 49.6.0
BuildRequires: pkgconfig(libavcodec) >= 57
BuildRequires: pkgconfig(libavutil) >= 55
BuildRequires: pkgconfig(libbluray) >= 0.2.1
BuildRequires: pkgconfig(libdts)
BuildRequires: pkgconfig(libpostproc)
BuildRequires: pkgconfig(libpostproc) >= 54
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(libva-glx)
BuildRequires: pkgconfig(mad)
BuildRequires: pkgconfig(vdpau)
%else
@ -136,6 +137,7 @@ Patch2: xine-lib-without-ffmpeg.patch
Patch3: fix-non-x86-build.diff
# Add theora FOURCC to libxine I found an avi container that xine wouldn't play.
Patch4: xine-lib-theora.patch
Patch5: xine-lib-ffmpeg3.0.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>
@ -509,6 +511,8 @@ EOF
%endif
%if %{with distributable}
%patch2 -p1
%else
%patch5 -p0
%endif
%ifnarch %ix86 x86_64
%patch3