]> git.pld-linux.org Git - packages/xine-lib.git/commitdiff
- fixed build with ffmpeg 3.x auto/th/xine-lib-1.2.6-3
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 21 Mar 2016 08:47:00 +0000 (09:47 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 21 Mar 2016 08:47:00 +0000 (09:47 +0100)
- rel 3

ffmpeg3.patch [new file with mode: 0644]
xine-lib.spec

diff --git a/ffmpeg3.patch b/ffmpeg3.patch
new file mode 100644 (file)
index 0000000..4169721
--- /dev/null
@@ -0,0 +1,40 @@
+--- xine-lib-1.2.6/src/combined/ffmpeg/ff_audio_decoder.c~     2014-06-09 18:08:42.000000000 +0200
++++ xine-lib-1.2.6/src/combined/ffmpeg/ff_audio_decoder.c      2016-03-21 09:43:09.997831950 +0100
+@@ -590,7 +590,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);
+@@ -1105,7 +1105,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);
+--- xine-lib-1.2.6/src/combined/ffmpeg/ff_video_decoder.c~     2014-06-24 18:21:06.000000000 +0200
++++ xine-lib-1.2.6/src/combined/ffmpeg/ff_video_decoder.c      2016-03-21 09:43:59.951188184 +0100
+@@ -2523,7 +2523,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
index ba7003c85bcb4c21966bdc11dd593f3e3b94e78c..be02dc19e20b24f5c8e8751a6499fa347ea75654 100644 (file)
@@ -40,7 +40,7 @@ Summary(pl.UTF-8):    Odtwarzacz filmów
 Summary(pt_BR.UTF-8):  Xine, um player de video
 Name:          xine-lib
 Version:       1.2.6
-Release:       2
+Release:       3
 Epoch:         2
 License:       GPL v2+
 Group:         Libraries
@@ -53,6 +53,7 @@ Patch3:               %{name}-ac.patch
 # from DirectFB 1.7.0
 Patch4:                %{name}-vdpau-hooks.patch
 Patch5:                x32.patch
+Patch6:                ffmpeg3.patch
 URL:           http://xine.sourceforge.net/
 %{?with_directfb:BuildRequires:        DirectFB-devel >= 0.9.22}
 %{?with_fusionsound:BuildRequires:     FusionSound-devel >= 0.9.23}
@@ -68,7 +69,7 @@ BuildRequires:        automake >= 1:1.8.1
 %{?with_esd:BuildRequires:     esound-devel >= 0.2.8}
 BuildRequires: faad2-devel
 # libavcodec >= 51.68.0, libavutil >= 49.6.0, libpostproc
-BuildRequires: ffmpeg-devel >= 0.8
+BuildRequires: ffmpeg-devel >= 3.0
 BuildRequires: flac-devel
 BuildRequires: gettext-tools >= 0.17
 %{?with_gnome:BuildRequires:   gnome-vfs2-devel}
@@ -968,6 +969,7 @@ XINE - wtyczka postprocessingu oparta na libpostproc z pakietu FFmpeg.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 %{__gettextize}
This page took 0.414336 seconds and 4 git commands to generate.