[packages/DirectFB] - rel 3; fix ffmpeg 2.4 build

arekm arekm at pld-linux.org
Tue Oct 7 22:52:48 CEST 2014


commit 547d18be4536f944ac3e5b4c1eb7187fc49e61ba
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Oct 7 22:52:41 2014 +0200

    - rel 3; fix ffmpeg 2.4 build

 DirectFB-ffmpeg.patch | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++
 DirectFB.spec         |  2 +-
 2 files changed, 71 insertions(+), 1 deletion(-)
---
diff --git a/DirectFB.spec b/DirectFB.spec
index b5e787d..61bc3a3 100644
--- a/DirectFB.spec
+++ b/DirectFB.spec
@@ -25,7 +25,7 @@ Summary:	DirectFB - Hardware graphics acceleration
 Summary(pl.UTF-8):	DirectFB - Wspomaganie grafiki
 Name:		DirectFB
 Version:	1.7.6
-Release:	2
+Release:	3
 Epoch:		1
 License:	LGPL v2+
 Group:		Libraries
diff --git a/DirectFB-ffmpeg.patch b/DirectFB-ffmpeg.patch
index 3428a28..8dd1bcb 100644
--- a/DirectFB-ffmpeg.patch
+++ b/DirectFB-ffmpeg.patch
@@ -196,3 +196,73 @@
                 data->audio.st    = NULL;
                 data->audio.ctx   = NULL;
                 data->audio.codec = NULL;
+--- DirectFB-1.7.6/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_ffmpeg.c.org	2014-10-07 22:09:44.408929059 +0200
++++ DirectFB-1.7.6/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_ffmpeg.c	2014-10-07 22:13:49.765446586 +0200
+@@ -931,11 +931,19 @@
+           /* Ugly hack to fix a bug (segfault) in url_fclose() */
+           if (!(iformat->flags & AVFMT_NOFILE)) {
+                iformat->flags |= AVFMT_NOFILE;
++#if 0
+                av_close_input_file( data->context );
++#else
++	       avformat_close_input( &data->context);
++#endif
+                iformat->flags ^= AVFMT_NOFILE;
+           }
+           else {
++#if 0
+                av_close_input_file( data->context );
++#else
++	       avformat_close_input( &data->context);
++#endif
+           }
+      }
+ 
+@@ -1815,7 +1823,7 @@
+           return DFB_FAILURE;
+      }
+ 
+-     if (av_find_stream_info( data->context ) < 0) {
++     if (avformat_find_stream_info( data->context, NULL ) < 0) {
+           D_ERROR( "IDirectFBVideoProvider_FFmpeg: "
+                    "couldn't find stream info!\n" );
+           IDirectFBVideoProvider_FFmpeg_Destruct( thiz );
+@@ -1867,8 +1875,12 @@
+           IDirectFBVideoProvider_FFmpeg_Destruct( thiz );
+           return DFB_FAILURE;
+      }
+-     
++    
++#if 0
+      data->video.src_frame = avcodec_alloc_frame();
++#else
++     data->video.src_frame = av_frame_alloc();
++#endif
+      if (!data->video.src_frame) {
+           IDirectFBVideoProvider_FFmpeg_Destruct( thiz );
+           return D_OOM();
+--- DirectFB-1.7.6/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c.org	2014-10-07 22:40:52.350475804 +0200
++++ DirectFB-1.7.6/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c	2014-10-07 22:42:19.896406741 +0200
+@@ -444,11 +444,11 @@
+           /* Ugly hack to fix a bug (segfault) in url_fclose() */
+           if (!(iformat->flags & AVFMT_NOFILE)) {
+                iformat->flags |= AVFMT_NOFILE;
+-               av_close_input_file( data->ctx );
++	       avformat_close_input( &data->ctx );
+                iformat->flags ^= AVFMT_NOFILE;
+           }
+           else {
+-               av_close_input_file( data->ctx );
++	       avformat_close_input( &data->ctx );
+           }
+      }
+ 
+@@ -1311,7 +1311,7 @@
+           return DR_FAILURE;
+      }
+ 
+-     if (av_find_stream_info( data->ctx ) < 0) {
++     if (avformat_find_stream_info( data->ctx, NULL ) < 0) {
+           D_ERROR( "IFusionSoundMusicProvider_FFmpeg: couldn't find stream info!\n" );
+           IFusionSoundMusicProvider_FFmpeg_Destruct( thiz );
+           return DR_FAILURE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/DirectFB.git/commitdiff/547d18be4536f944ac3e5b4c1eb7187fc49e61ba



More information about the pld-cvs-commit mailing list