summaryrefslogtreecommitdiff
path: root/community/mlt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-07 01:04:45 -0800
committerroot <root@rshg054.dnsready.net>2012-11-07 01:04:45 -0800
commita8fff09ba6d0f8b78b43e63541b1254763d4f48e (patch)
treed5ed9796d5aa31b378f4bfed4482b84008e731fa /community/mlt
parent85e0e667660650d70269432a90401d4288776d9d (diff)
Wed Nov 7 01:04:45 PST 2012
Diffstat (limited to 'community/mlt')
-rw-r--r--community/mlt/PKGBUILD12
-rw-r--r--community/mlt/ffmpeg.patch29
2 files changed, 37 insertions, 4 deletions
diff --git a/community/mlt/PKGBUILD b/community/mlt/PKGBUILD
index 276d90da7..a9517a972 100644
--- a/community/mlt/PKGBUILD
+++ b/community/mlt/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 75787 2012-08-31 10:39:46Z spupykin $
+# $Id: PKGBUILD 79513 2012-11-06 12:08:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Fabian Schoelzel <myfirstname.mylastname@googlemail.com>
# Contributor: funkyou <spamopfer@nickname.berlin.de>
@@ -8,20 +8,24 @@
pkgbase=mlt
pkgname=('mlt' 'mlt-python-bindings')
pkgver=0.8.2
-pkgrel=1
+pkgrel=2
pkgdesc="An open source multimedia framework"
arch=('i686' 'x86_64')
url="http://www.mltframework.org"
license=('GPL')
makedepends=('sdl_image' 'libsamplerate' 'libdv' 'qt' 'sox' 'libxml2' 'gtk2' 'ffmpeg'
'frei0r-plugins' 'swig' 'python2' "jack" "ladspa")
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('c7a8c4ca7485bb615cbcf851d8742a1c')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+ ffmpeg.patch)
+md5sums=('c7a8c4ca7485bb615cbcf851d8742a1c'
+ 'c28b4691d1715432d4de0055f4e2f5eb')
build() {
# mlt
cd "$srcdir/mlt-$pkgver"
+ patch -p1 <$srcdir/ffmpeg.patch
+
[ $CARCH == "i686" ] && SSE2=--disable-sse2 || SSE2=
# SSE2=--disable-sse2
diff --git a/community/mlt/ffmpeg.patch b/community/mlt/ffmpeg.patch
new file mode 100644
index 000000000..7bd4903db
--- /dev/null
+++ b/community/mlt/ffmpeg.patch
@@ -0,0 +1,29 @@
+diff -wbBur mlt-0.8.2/src/modules/avformat/consumer_avformat.c mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c
+--- mlt-0.8.2/src/modules/avformat/consumer_avformat.c 2012-08-28 20:25:58.000000000 +0400
++++ mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c 2012-11-06 16:03:07.269782436 +0400
+@@ -237,11 +237,7 @@
+ mlt_properties_set_data( properties, "acodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
+ mlt_properties_set_data( doc, "audio_codecs", codecs, 0, NULL, NULL );
+ while ( ( codec = av_codec_next( codec ) ) )
+-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
+- if ( ( codec->encode || codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
+-#else
+- if ( codec->encode && codec->type == CODEC_TYPE_AUDIO )
+-#endif
++ if ( ( codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
+ {
+ snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) );
+ mlt_properties_set( codecs, key, codec->name );
+@@ -261,11 +257,7 @@
+ mlt_properties_set_data( properties, "vcodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
+ mlt_properties_set_data( doc, "video_codecs", codecs, 0, NULL, NULL );
+ while ( ( codec = av_codec_next( codec ) ) )
+-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
+- if ( (codec->encode || codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
+-#else
+- if ( codec->encode && codec->type == CODEC_TYPE_VIDEO )
+-#endif
++ if ( (codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
+ {
+ snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) );
+ mlt_properties_set( codecs, key, codec->name );