summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgcurse2018-04-11 08:10:33 +0200
committergcurse2018-04-11 08:10:33 +0200
commita5161729ca897d2b6e2f5b3affa76a27f48c071e (patch)
treeb55928368d6b3f7fce07440ecb1797e5e4397635
parent3b10478780602fe72b74dc54d0e0064b3be66054 (diff)
downloadaur-a5161729ca897d2b6e2f5b3affa76a27f48c071e.tar.gz
changed source location, patch added
-rw-r--r--PKGBUILD19
-rw-r--r--h264_qpel_mmx.patch38
2 files changed, 51 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 135a8294579..f29f935c461 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,19 +4,26 @@
pkgname=gstreamer0.10-ffmpeg
_pkgname=gst-ffmpeg
pkgver=0.10.13
-pkgrel=9
+pkgrel=10
pkgdesc="Gstreamer FFMpeg Plugin"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL')
-depends=('gstreamer0.10-base' 'bzip2')
+depends=('gstreamer0.10-base>=0.10.36-11' 'bzip2')
makedepends=('pkgconfig' 'yasm' 'sdl' 'git' 'gtk-doc')
url="http://gstreamer.freedesktop.org/"
groups=('gstreamer0.10-plugins')
-source=("git+https://gitlab.com/gstreamer-sdk/$_pkgname.git#commit=94e587b9182c6d2fde9a61c9def790c8047453c0")
-sha256sums=('SKIP')
+source=("https://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.13.tar.bz2"
+ h264_qpel_mmx.patch)
+sha256sums=('76fca05b08e00134e3cb92fa347507f42cbd48ddb08ed3343a912def187fbb62'
+ 'd69ccc71a55063bc550ed7f7c838a7defb44a35270fdc1b3a276b516a6b55a88')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ patch -Np1 -i ../h264_qpel_mmx.patch
+}
build() {
- cd $_pkgname
+ cd ${_pkgname}-${pkgver}
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static --enable-gtk-doc --with-ffmpeg-extra-configure="--enable-runtime-cpudetect"
make
@@ -28,6 +35,6 @@ build() {
# }
package() {
- cd $_pkgname
+ cd ${_pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
diff --git a/h264_qpel_mmx.patch b/h264_qpel_mmx.patch
new file mode 100644
index 00000000000..904f15045b9
--- /dev/null
+++ b/h264_qpel_mmx.patch
@@ -0,0 +1,38 @@
+--- gst-ffmpeg-0.10.13.orig/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c 2011-11-02 16:16:24.000000000 +0100
++++ gst-ffmpeg-0.10.13/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c 2018-03-31 11:59:27.680104413 +0200
+@@ -398,7 +398,7 @@ static av_noinline void OPNAME ## h264_q
+ "2: \n\t"\
+ \
+ : "+a"(src), "+c"(dst)\
+- : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
++ : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
+ : "memory"\
+ );\
+ src += 4-(h+5)*srcStride;\
+@@ -446,7 +446,7 @@ static av_always_inline void OPNAME ## h
+ QPEL_H264HV(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, 15*48)\
+ "2: \n\t"\
+ : "+a"(src)\
+- : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)\
++ : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)\
+ : "memory"\
+ );\
+ tmp += 4;\
+@@ -823,7 +823,7 @@ static av_noinline void OPNAME ## h264_q
+ "2: \n\t"\
+ \
+ : "+a"(src), "+c"(dst)\
+- : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
++ : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
+ : XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3", \
+ "%xmm4", "%xmm5", "%xmm6", "%xmm7",)\
+ "memory"\
+@@ -878,7 +878,7 @@ static av_always_inline void put_h264_qp
+ QPEL_H264HV_XMM(%%xmm3, %%xmm4, %%xmm5, %%xmm0, %%xmm1, %%xmm2, 15*48)
+ "2: \n\t"
+ : "+a"(src)
+- : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)
++ : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)
+ : XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+ "%xmm4", "%xmm5", "%xmm6", "%xmm7",)
+ "memory"