[arch-commits] Commit in ffmpeg/trunk (2 files)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Thu Oct 31 16:28:22 UTC 2013


    Date: Thursday, October 31, 2013 @ 17:28:22
  Author: bpiotrowski
Revision: 198638

upgpkg: ffmpeg 1:2.1-2

- backport a patch fixing cookies support (FS#37545)

Added:
  ffmpeg/trunk/ffmpeg-2.1-avformat-http.fix-cookies.patch
Modified:
  ffmpeg/trunk/PKGBUILD

--------------------------------------------+
 PKGBUILD                                   |   22 ++++++++++++++-------
 ffmpeg-2.1-avformat-http.fix-cookies.patch |   28 +++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-10-31 15:45:29 UTC (rev 198637)
+++ PKGBUILD	2013-10-31 16:28:22 UTC (rev 198638)
@@ -1,15 +1,16 @@
 # $Id$
-# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Maintainer:  Ionut Biru <ibiru at archlinux.org>
+# Maintainer:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 # Contributor: Paul Mattal <paul at archlinux.org>
 
 pkgname=ffmpeg
 pkgver=2.1
-pkgrel=1
+pkgrel=2
 epoch=1
-pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+pkgdesc='Complete and free Internet live audio and video broadcasting solution'
 arch=('i686' 'x86_64')
-url="http://ffmpeg.org/"
+url='http://ffmpeg.org/'
 license=('GPL')
 depends=(
       'alsa-lib' 'bzip2' 'fontconfig' 'gnutls' 'gsm' 'lame' 'libass'
@@ -18,9 +19,16 @@
       'v4l-utils' 'x264' 'xvidcore' 'zlib'
       )
 makedepends=('libvdpau' 'yasm')
-source=(http://ffmpeg.org/releases/$pkgname-$pkgver.tar.bz2)
-sha256sums=('926603fd974e9b38071a5cfc6fd0d93857801d1968145dfce7fdc627ab1d68df')
+source=(http://ffmpeg.org/releases/$pkgname-$pkgver.tar.bz2
+        ffmpeg-2.1-avformat-http.fix-cookies.patch)
+sha256sums=('926603fd974e9b38071a5cfc6fd0d93857801d1968145dfce7fdc627ab1d68df'
+            '0168bc6f77115ef6f3bd428b1b05a1543d0dd53d8d74c15a24879b119ce8655c')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../ffmpeg-2.1-avformat-http.fix-cookies.patch
+}
+
 build() {
   cd $pkgname-$pkgver
 
@@ -70,7 +78,7 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install install-man
-  install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart"
+  install -D -m755 tools/qt-faststart "$pkgdir"/usr/bin/qt-faststart
 }
 
 # vim:set ts=2 sw=2 et:

Added: ffmpeg-2.1-avformat-http.fix-cookies.patch
===================================================================
--- ffmpeg-2.1-avformat-http.fix-cookies.patch	                        (rev 0)
+++ ffmpeg-2.1-avformat-http.fix-cookies.patch	2013-10-31 16:28:22 UTC (rev 198638)
@@ -0,0 +1,28 @@
+From b73900b8a6c0a23e63e84a5eed0a5b9b3ffe1198 Mon Sep 17 00:00:00 2001
+From: Michael Niedermayer <michaelni at gmx.at>
+Date: Thu, 31 Oct 2013 01:42:13 +0100
+Subject: [PATCH] avformat/http: fix cookies
+
+Fixes Ticket3096
+
+Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
+---
+ libavformat/http.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libavformat/http.c b/libavformat/http.c
+index c5b5c53..9be1181 100644
+--- a/libavformat/http.c
++++ b/libavformat/http.c
+@@ -95,7 +95,7 @@ static const AVOption options[] = {
+ {"multiple_requests", "use persistent connections", OFFSET(multiple_requests), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, D|E },
+ {"post_data", "set custom HTTP post data", OFFSET(post_data), AV_OPT_TYPE_BINARY, .flags = D|E },
+ {"mime_type", "set MIME type", OFFSET(mime_type), AV_OPT_TYPE_STRING, {0}, 0, 0, 0 },
+-{"cookies", "set cookies to be sent in applicable future requests, use newline delimited Set-Cookie HTTP field value syntax", OFFSET(cookies), AV_OPT_TYPE_STRING, {0}, 0, 0, 0 },
++{"cookies", "set cookies to be sent in applicable future requests, use newline delimited Set-Cookie HTTP field value syntax", OFFSET(cookies), AV_OPT_TYPE_STRING, {0}, 0, 0, D },
+ {"icy", "request ICY metadata", OFFSET(icy), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, D },
+ {"icy_metadata_headers", "return ICY metadata headers", OFFSET(icy_metadata_headers), AV_OPT_TYPE_STRING, {0}, 0, 0, 0 },
+ {"icy_metadata_packet", "return current ICY metadata packet", OFFSET(icy_metadata_packet), AV_OPT_TYPE_STRING, {0}, 0, 0, 0 },
+-- 
+1.8.4.1
+




More information about the arch-commits mailing list