summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-03-10 07:39:11 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-03-10 07:39:11 +0000
commitc1f67ab541c681c7848d5406b4c19ef0776fd06c (patch)
treefc750b936b8919ef22999a9e5bd9ccc605b47e25 /media-libs/mlt
parentBump to the 0.5 release. (diff)
downloadhistorical-c1f67ab541c681c7848d5406b4c19ef0776fd06c.tar.gz
historical-c1f67ab541c681c7848d5406b4c19ef0776fd06c.tar.bz2
historical-c1f67ab541c681c7848d5406b4c19ef0776fd06c.zip
Add upstream fix to build with ffmpeg trunk
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'media-libs/mlt')
-rw-r--r--media-libs/mlt/ChangeLog6
-rw-r--r--media-libs/mlt/Manifest13
-rw-r--r--media-libs/mlt/files/mlt-0.3.6-avutil.patch167
-rw-r--r--media-libs/mlt/mlt-0.3.6.ebuild3
4 files changed, 181 insertions, 8 deletions
diff --git a/media-libs/mlt/ChangeLog b/media-libs/mlt/ChangeLog
index 63bcc382d5c5..2844b409c6ff 100644
--- a/media-libs/mlt/ChangeLog
+++ b/media-libs/mlt/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/mlt
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.36 2009/02/09 18:40:54 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/ChangeLog,v 1.37 2009/03/10 07:39:11 aballier Exp $
+
+ 10 Mar 2009; Alexis Ballier <aballier@gentoo.org>
+ +files/mlt-0.3.6-avutil.patch, mlt-0.3.6.ebuild:
+ Add upstream fix to build with ffmpeg trunk
*mlt-0.3.6 (09 Feb 2009)
diff --git a/media-libs/mlt/Manifest b/media-libs/mlt/Manifest
index c3cd6a6f9247..446b687f5ced 100644
--- a/media-libs/mlt/Manifest
+++ b/media-libs/mlt/Manifest
@@ -2,16 +2,17 @@
Hash: SHA1
AUX mlt-0.2.3-nostrip.patch 1763 RMD160 958ea322e598e286dc9adcc6ba509c7b2eeae5b2 SHA1 8a24c74980b8cdefb19164a4c6a36217b23244dd SHA256 1e0945b45245c297464e845bf6409a91582d288047b2b511357ead52be70fceb
+AUX mlt-0.3.6-avutil.patch 5678 RMD160 2643d1a170b1bfba6e34eeef9e162aed834f0f03 SHA1 2a6bfc9a1514e4d485e4d0afcade7cc654e028d5 SHA256 251c3bd4956c5c4221e59b54a2e8d900e42e720c48bcb09be90733d48ab2a4db
DIST mlt-0.3.4.tar.gz 744993 RMD160 094f90548c6dd01cc190cc4dea0a471731a9636c SHA1 da673028a731ffbc968726fc19dc284d31c99796 SHA256 a25dd02aa4de5b85a64160444fbd2c1860b408391783fd93dd9dcc23ae05e425
DIST mlt-0.3.6.tar.gz 755211 RMD160 e68584c5665460cee5f6a5057db6dfa2792d008f SHA1 cfa6039b57e357a9e3cc3b8dd00cfe29715dd0df SHA256 da82437e3a03f6ef835c3546aa2c8c0fb16a0d47925c3c7d56db3db90d2ecfc5
EBUILD mlt-0.3.4.ebuild 2633 RMD160 bd31039d6fe8bdf93f0b730bd599d7fc8f40a5e4 SHA1 f4936732ffb6cb5de8c62c6567a56931d841f7a1 SHA256 3b4ed897f2532218fbaf84c42eb3129870889374b4c08f951f9fc66fd86e5c2c
-EBUILD mlt-0.3.6.ebuild 2633 RMD160 2b805f1e556f48b5d8ae402420c5354066051648 SHA1 991b70c0ddd122cbef91eee8702dc281009f5a67 SHA256 c13acc95973ec1913611852dd6ec0537b7786b5ce3ee2f8655e3b3b6e6394243
-MISC ChangeLog 5867 RMD160 e1d9bf46aa3dcb3f7b43951ada6c35a40dc733af SHA1 7def2050a7598a075f971f8d451e07f69a32cc87 SHA256 1c36565476f5c57a44ff64028357b1e85e606944d5909a853b23fc592d9d83fd
+EBUILD mlt-0.3.6.ebuild 2673 RMD160 83ac333f65231720ff9d02bc40c50f9dd71bf21a SHA1 332e148e187853167aea10c1748200a0be4c0117 SHA256 111a373619a2c662fd278ac27135505bd1e2f986522dc190e7b5dfe46b5522aa
+MISC ChangeLog 6017 RMD160 43282657ade2e2ff4316fbeb28c982266ef19762 SHA1 00705a63f02aa089a667fd89873f91f86b53e2bc SHA256 42a79963e18135f43007fc9294236656b3d8af566e8ec8161b12a3b33331ec66
MISC metadata.xml 226 RMD160 9acecdf92471eb50a25bc1aaf0d5179959d6d211 SHA1 f66369c7e7900801781a598bf5a7e6e49803a801 SHA256 b159adc5c7076105f4bc05f02d3c1e12bcad82faedf5df5ba4888077732ebf64
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.10 (GNU/Linux)
-iEYEARECAAYFAkmQeLcACgkQvFcC4BYPU0r1fgCeLsqLqAagyElRd9+AguLqjBUx
-5nsAoKXB0rc/glxGk3Wsu+b3BShQApJU
-=CATp
+iEYEARECAAYFAkm2GSUACgkQvFcC4BYPU0qPmQCcDCg+/PFrYsvUA0YoDehEYsBW
+7s0An0j26c8KbTbntyGbusWtRVFIPl6T
+=NAjV
-----END PGP SIGNATURE-----
diff --git a/media-libs/mlt/files/mlt-0.3.6-avutil.patch b/media-libs/mlt/files/mlt-0.3.6-avutil.patch
new file mode 100644
index 000000000000..64d06dd9a610
--- /dev/null
+++ b/media-libs/mlt/files/mlt-0.3.6-avutil.patch
@@ -0,0 +1,167 @@
+http://mlt.svn.sourceforge.net/viewvc/mlt?view=rev&revision=1376
+
+Index: src/modules/avformat/filter_swscale.c
+===================================================================
+--- src/modules/avformat/filter_swscale.c (revision 1375)
++++ src/modules/avformat/filter_swscale.c (revision 1376)
+@@ -33,6 +33,11 @@
+ #include <string.h>
+ #include <assert.h>
+
++#if LIBAVUTIL_VERSION_INT < (50<<16)
++#define PIX_FMT_RGB32 PIX_FMT_RGBA32
++#define PIX_FMT_YUYV422 PIX_FMT_YUV422
++#endif
++
+ static inline int is_big_endian( )
+ {
+ union { int i; char c[ 4 ]; } big_endian_test;
+@@ -51,10 +56,10 @@
+ value = PIX_FMT_RGB24;
+ break;
+ case mlt_image_rgb24a:
+- value = PIX_FMT_RGBA32;
++ value = PIX_FMT_RGB32;
+ break;
+ case mlt_image_yuv422:
+- value = PIX_FMT_YUV422;
++ value = PIX_FMT_YUYV422;
+ break;
+ case mlt_image_yuv420p:
+ value = PIX_FMT_YUV420P;
+@@ -109,7 +114,7 @@
+ avpicture_fill( &output, outbuf, oformat, owidth, oheight );
+
+ // Extract the alpha channel
+- if ( iformat == PIX_FMT_RGBA32 && oformat == PIX_FMT_YUV422 )
++ if ( iformat == PIX_FMT_RGB32 && oformat == PIX_FMT_YUYV422 )
+ {
+ // Allocate the alpha mask
+ uint8_t *alpha = mlt_pool_alloc( iwidth * ( iheight + 1 ) );
+@@ -118,7 +123,7 @@
+ // Convert the image and extract alpha
+ mlt_convert_rgb24a_to_yuv422( *image, iwidth, iheight, iwidth * 4, outbuf, alpha );
+ mlt_properties_set_data( properties, "alpha", alpha, iwidth * ( iheight + 1 ), ( mlt_destructor )mlt_pool_release, NULL );
+- iformat = PIX_FMT_YUV422;
++ iformat = PIX_FMT_YUYV422;
+ avpicture_fill( &input, outbuf, iformat, iwidth, iheight );
+ avpicture_fill( &output, *image, oformat, owidth, oheight );
+ }
+Index: src/modules/avformat/consumer_avformat.c
+===================================================================
+--- src/modules/avformat/consumer_avformat.c (revision 1375)
++++ src/modules/avformat/consumer_avformat.c (revision 1376)
+@@ -41,6 +41,11 @@
+ #endif
+ #include <opt.h>
+
++#if LIBAVUTIL_VERSION_INT < (50<<16)
++#define PIX_FMT_RGB32 PIX_FMT_RGBA32
++#define PIX_FMT_YUYV422 PIX_FMT_YUV422
++#endif
++
+ //
+ // This structure should be extended and made globally available in mlt
+ //
+@@ -810,7 +815,7 @@
+
+ // Need two av pictures for converting
+ AVFrame *output = NULL;
+- AVFrame *input = alloc_picture( PIX_FMT_YUV422, width, height );
++ AVFrame *input = alloc_picture( PIX_FMT_YUYV422, width, height );
+
+ // For receiving images from an mlt_frame
+ uint8_t *image;
+@@ -1102,17 +1107,17 @@
+
+ // Do the colour space conversion
+ #ifdef SWSCALE
+- struct SwsContext *context = sws_getContext( width, height, PIX_FMT_YUV422,
++ struct SwsContext *context = sws_getContext( width, height, PIX_FMT_YUYV422,
+ width, height, video_st->codec->pix_fmt, SWS_FAST_BILINEAR, NULL, NULL, NULL);
+ sws_scale( context, input->data, input->linesize, 0, height,
+ output->data, output->linesize);
+ sws_freeContext( context );
+ #else
+- img_convert( ( AVPicture * )output, video_st->codec->pix_fmt, ( AVPicture * )input, PIX_FMT_YUV422, width, height );
++ img_convert( ( AVPicture * )output, video_st->codec->pix_fmt, ( AVPicture * )input, PIX_FMT_YUYV422, width, height );
+ #endif
+
+ // Apply the alpha if applicable
+- if ( video_st->codec->pix_fmt == PIX_FMT_RGBA32 )
++ if ( video_st->codec->pix_fmt == PIX_FMT_RGB32 )
+ {
+ uint8_t *alpha = mlt_frame_get_alpha_mask( frame );
+ register int n;
+Index: src/modules/avformat/filter_avcolour_space.c
+===================================================================
+--- src/modules/avformat/filter_avcolour_space.c (revision 1375)
++++ src/modules/avformat/filter_avcolour_space.c (revision 1376)
+@@ -27,6 +27,11 @@
+ #include <swscale.h>
+ #endif
+
++#if LIBAVUTIL_VERSION_INT < (50<<16)
++#define PIX_FMT_RGB32 PIX_FMT_RGBA32
++#define PIX_FMT_YUYV422 PIX_FMT_YUV422
++#endif
++
+ #include <stdio.h>
+ #include <stdlib.h>
+
+@@ -48,10 +53,10 @@
+ value = PIX_FMT_RGB24;
+ break;
+ case mlt_image_rgb24a:
+- value = PIX_FMT_RGBA32;
++ value = PIX_FMT_RGB32;
+ break;
+ case mlt_image_yuv422:
+- value = PIX_FMT_YUV422;
++ value = PIX_FMT_YUYV422;
+ break;
+ case mlt_image_yuv420p:
+ value = PIX_FMT_YUV420P;
+Index: src/modules/avformat/filter_avdeinterlace.c
+===================================================================
+--- src/modules/avformat/filter_avdeinterlace.c (revision 1375)
++++ src/modules/avformat/filter_avdeinterlace.c (revision 1376)
+@@ -81,6 +81,10 @@
+ movd_r2m(mm1,dst[0]);
+ #endif
+
++#if LIBAVUTIL_VERSION_INT < (50<<16)
++#define PIX_FMT_YUYV422 PIX_FMT_YUV422
++#endif
++
+ /* filter parameters: [-1 4 2 4 -1] // 8 */
+ static inline void deinterlace_line(uint8_t *dst,
+ const uint8_t *lum_m4, const uint8_t *lum_m3,
+@@ -237,14 +241,14 @@
+
+ if (pix_fmt != PIX_FMT_YUV420P &&
+ pix_fmt != PIX_FMT_YUV422P &&
+- pix_fmt != PIX_FMT_YUV422 &&
++ pix_fmt != PIX_FMT_YUYV422 &&
+ pix_fmt != PIX_FMT_YUV444P &&
+ pix_fmt != PIX_FMT_YUV411P)
+ return -1;
+ if ((width & 3) != 0 || (height & 3) != 0)
+ return -1;
+
+- if ( pix_fmt != PIX_FMT_YUV422 )
++ if ( pix_fmt != PIX_FMT_YUYV422 )
+ {
+ for(i=0;i<3;i++) {
+ if (i == 1) {
+@@ -314,8 +318,8 @@
+ // Fill the picture
+ if ( *format == mlt_image_yuv422 )
+ {
+- avpicture_fill( output, *image, PIX_FMT_YUV422, *width, *height );
+- mlt_avpicture_deinterlace( output, output, PIX_FMT_YUV422, *width, *height );
++ avpicture_fill( output, *image, PIX_FMT_YUYV422, *width, *height );
++ mlt_avpicture_deinterlace( output, output, PIX_FMT_YUYV422, *width, *height );
+ }
+
+ // Free the picture
diff --git a/media-libs/mlt/mlt-0.3.6.ebuild b/media-libs/mlt/mlt-0.3.6.ebuild
index 320fd982238e..5c69c810bb5b 100644
--- a/media-libs/mlt/mlt-0.3.6.ebuild
+++ b/media-libs/mlt/mlt-0.3.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/mlt-0.3.6.ebuild,v 1.1 2009/02/09 18:40:54 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/mlt-0.3.6.ebuild,v 1.2 2009/03/10 07:39:11 aballier Exp $
EAPI=1
@@ -50,6 +50,7 @@ src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/mlt-0.2.3-nostrip.patch
+ epatch "${FILESDIR}"/${P}-avutil.patch
}
src_compile() {