--- /dev/null
+--- 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
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
# 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}
%{?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}
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
%{__gettextize}